# Virtualization

**URL:** <https://www.ruby-forum.com/t/virtualization/206637>\
**Category:** NGINX\
**Created:** [May 6, 2011, 1:01pm UTC](https://www.ruby-forum.com/t/virtualization/206637 "2011-05-06T13:01:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 6, 2011, 1:01pm UTC](https://www.ruby-forum.com/t/virtualization/206637/1 "2011-05-06T13:01:59Z")

</div>

Hey!  
I am trying to virtualize nginx in my own private cloud. Is there any  
special consideration regard configuration that I have to consider?  
Anyone did something similar? Regard throughput, anyone with some  
numbers to share?

Thanks!

Jonathan

---

<div class="post-metadata">

**Author:** ![johanatan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Post date:** [May 19, 2011, 3:24pm UTC](https://www.ruby-forum.com/t/virtualization/206637/2 "2011-05-19T15:24:42Z")

</div>

On Fri, May 6, 2011 at 6:01 AM, Jonathan L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hey!  
> I am trying to virtualize nginx in my own private cloud. Is there any  
> special consideration regard configuration that I have to consider?  
> Anyone did something similar? Regard throughput, anyone with some  
> numbers to share?

We run nginx on single-core VMs both internally and in our hosted  
environment. Performance is excellent. WE allocate just 1-2 GB RAM per  
vm. The stack is:  
nginx 0.7.67-\>Ubuntu 10.04.2-\>Vmware ESX 4.1-\>Dell 2950III (Xeon 5300  
series).

I recall seeing \>8000 requests/sec using apache bench for a static  
file 50K. And something like 5000 requests/sec for the same file  
served through nginx being proxy\_passed to an IIS backend (without  
nginx proxy\_cache). This is on a local LAN.

In our production internet-facing environment, which uses only  
proxy\_pass and proxy\_cache in front of a Tomcat cluster, we routinely  
see peaks 1000+ requests/sec through any single nginx VM. About 70% of  
these requests are for static files that are usually hits in  
proxy\_cache, the rest are dynamic pages from the Tomcat servers. In  
short, it just works. The only nginx tuning we really had to do was  
adjusting proxy\_buffers upwards, adding more workers, and setting more  
connections per worker. We use 10 worker processes per core to get  
around the lack of AIO on Linux.

## As with all performance numbers, YMMV. There are_no_ magic solutions, and no substitutes for doing your own load testing on your own code and hardware. We spent about 6 man-weeks building our load tests with NeoLoad, and now we can re-run whenever we have a new code release or are testing different infrastructure pieces.

RPM
