Posted by yvmarques on June 13, 2012 at 3:44pm
Hi every body,
I look close the main configurations for Nginx (mainly omega8cc and perusio) and I'm wondering to know which kind of ressrouces server is required to run a Drupal with theses configurations.
My hosting company allow me to create quickly a virtual server with a distrib of my choice but with 1 processor, 256M of RAM and 8Go disk (3 used for the system).
As I saw, the both configs set 4 worker_proccess for Nginx, and the documentation say that number should be equal to the number of processors.
So I'm wondering if a server to run a website really needs 4 processors to run a Drupal install (in average with 80 modules enabled and around 300 visitors per day.)
Regards,
Comments
That VM sounds like it should
That VM sounds like it should be able to run your site just fine. Experiment with number of workers. You want at least 1 per thread of your CPU, but may see benefits with more. It depends on which of IO, RAM or CPU time are the resource under contention. (If it's IO then you want more workers, if it's RAM you want fewer, CPU depends on Nginx internals, my guess is that because it's evented it doesn't matter much).
If it turns out that it can't though (or if it can until your site gets more popular in the future), does this host have larger VMs you could upgrade to easily?
Hi lotyrin, Ok, thanks for
Hi lotyrin,
Ok, thanks for your answer.
To answer to your question. Yes, my hosting company is quite nice because they allow me to manage my resources as I want. for example I can easily add more RAM and keep the same processor and opposite. The same with hard drive.
I will try some config.
Cheers,
No need to run
in any particular config. In fact the more resource challenged the better you are going with Nginx. The most challenging thing is the PHP part. If you use Nginx (microcaching) everyhing will work flawlessly and you'll be able to sustain great loads (anonymous users) with that configuration.