- Performance/low resource consumption
- Easy to manage. If you are a casual user of a web browser you'll appreciate how easy is to configure it via it's web administrator user interface.
So it's time to save the planet...
In this post I'll explain how to use Cherokee's features to improve your Pixelpost installation performance while reducing the usage of your server's resources.
First I recommend to use Cherokee's FCGI implementation to connect to your php-cgi process instead of using a simple cgi. The reason is simple, your server will not need to spawm a new process to serve each request, reducing the response latency and reducing the usage of your server's precious resources (like CPU).
The second one, that I think it's less obvious to many people is to use one of Cherokee's most valuable features. The I/O Cache used to serve static content.
When you configure Pixelpost with any web server (and this applies to all web applications), what you do is to set a rule in the web server to forward all requests from a given URL to the PHP (or any other technology) interpreter. In the case of Pixelpost there are some resources that are static (your photos being the most obvious ones) that are fetched by the PHP interpreter, forwarded to the web server, and then delivered to the final user (your visitor's web browser). Setting the following rules will improve the performance of your site reducing the number of CPU cycles needed to serve the content.
Add a Directory rule for /images and /templates with a Static Content handler and be sure to check the User I/O cache checkbox.
This will make Cherokee serve directly the static content (will bypass the PHP interpreter) and use a content cache that uses the same advanced algorithm that is used in Opensolaris' ZFS. You'll reduce the number of lookups and reads from your harddrive (again reducing latency and saving power) for free.
Now, I haven't posted any screenshots about the process. I challenge you to try to do it yourself and discover how easy it is to use the user interface. (hint. You'll find very useful resources in http://cherokee-project.com).
Go Green Cherokee!
Cherokee uses much more CPU resources than Nginx or G-WAN, see:
ReplyDeletehttp://dsec.com/imgs//gwan_nginx_cherokee.png
and,
http://nbonvin.wordpress.com/2011/03/14/apache-vs-nginx-vs-varnish-vs-gwan/