The python proxy is only used when developing, it is from a little python proxy that I found on line and never had a problem with before. What it is doing is rerouting all the request for
jsapp.us at the localhost (I only had to add like 2 lines to get this working).
As for nginx, it is a very good web server. While the load distributor could be written in node, I have seen node seg-fault on the most simple code, as well it requires more cpu time than nginx.
For example: the master process (keep the things alive, and prints output of process to stdout for debugging) has used about 11 hours of cpu time in the last 24 hours. The front-end editor server has used about 10 minutes. In this same period of time, the sum of the nginx process is only about 5 minutes. Also note that nginx is a web server designed in C to perform this task, and thus nothing that I make in node will be able to compare in speed or efficiency.
The master process is responsible for starting up all the processes. It is running inside a bash, white true loop to ensure that it stays running (I have seen this seg-fault before).
I was originally going to make some way of watching the memory, but have not yet needed it (I was planning to make the master watch the /proc files). But there is a heart beat system, in which the master process will kill a child if it fails to keep the heart beat.
--
Matthew Francis-Landau
mat...@matthewfl.com http://matthewfl.com