mongrel和mongrel_cluster的区别是什么
Ask:
?? mongrel和mongrel_cluster的区别是什么
?
Answer1:Mongrel is a web server that can handle one request at a time. In order to handle multiple requests, you want to run multiple mongrels. A proxy server (i.e. apache) will sit in front of the servers and listen on port 80 and then relay the web requests to an available mongrel. Mongrel cluster is a gem that manages the launching of the mongrels, stopping, restarting and running it in the right environment with the right user. It abstracts the individual mongrels as workers so you don't need to worry about them (until things go wrong). All of that is managed by a configuration file usually located with the application. Mongrel cluster is multiple mongrel instances. Then the web server rotates amongst them to handle incoming calls.But these days the cool kids tend to use Passenger (and often the related Enterprise Ruby too)?