I haven't done very thorough testing, but I believe that the dispatcher.lsapi loads the rails framework, then spawns the children, correct?
It'd be cool if it could also go through my controllers directory and load each controller - as that's another 3 seconds of intensive file loading, and it would be greeeeat to have that memory shared across the child processes.
1) Where is the dispatcher.lsapi loaded from in the default configuration? How would I replace it with a customized version?
2) Will iterating in ruby over each *_controller file and requiring it work the way I expect it will with regards to shared memory?
3) On an unrelated note, I have problems sometimes with my app hanging on stupid things I'm doing in ruby - like waiting forever for a memcache socket to respond. These processes are then usually not killed by lsws, because they need kill -5. Any plans or suggestions how to get lsws to escalate the kill amount if children are not dieing?
Thanks for a great project!
It'd be cool if it could also go through my controllers directory and load each controller - as that's another 3 seconds of intensive file loading, and it would be greeeeat to have that memory shared across the child processes.
1) Where is the dispatcher.lsapi loaded from in the default configuration? How would I replace it with a customized version?
2) Will iterating in ruby over each *_controller file and requiring it work the way I expect it will with regards to shared memory?
3) On an unrelated note, I have problems sometimes with my app hanging on stupid things I'm doing in ruby - like waiting forever for a memcache socket to respond. These processes are then usually not killed by lsws, because they need kill -5. Any plans or suggestions how to get lsws to escalate the kill amount if children are not dieing?
Thanks for a great project!