Earlier quoted context omitted.
I'm not really familiar with CPUs, but I got a hyperthreaded, quad core Xeon with 24 GB RAM, 750 2xRAID1 disks and 10 TB bandwidth from Hetzner for 60 euros a month... Isn't that comparable to what you mention, apart from being many times cheaper? http://www.hetzner.de/en/hosting/produkte_rootserver/ex5
Not quite. Check this out http://ark.intel.com/compare/47920,37147 The Softlayer server is a Xeon, the Hetzner is a desktop grade processor. Key differences for me * Cache * QPI (especially in a 2P config that makes a difference) * Max TDP ... that's a HUGE one. * ECC memory. See http://perspectives.mvdirona.com/2012/02/26/ObservationsOnEr... for why this is important So, you're not comparing apples to apples
500,000 Requests/Sec – Modern HTTP Servers Are Fast
31–40 of 41 posts
Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#32Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#33nginx saturates at ~18k req/sec / core with a latency of ~24ms. This saturation is not coming from nginx in particular but from OS limits (mode switching, stack copying etc.. for read/write system calls). There is nothing new in "modern HTTP servers". They are event-driven programs and this has existed for a long time.
As you rightly said - the key limit if you get to such high I/O levels is first with OS processing - the implementation of the network stack on the iron - with performance above 50k the limit comes from the "pipes" moving the data up from the network card to the OS layer where the web server sits (and providing the layer 4 / TCP services). Hence in telcom environments where you get such requirements the TCP/IP stack…
Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#34Earlier quoted context omitted.
Gregg Pollock made a series of videos (underwritten by RPM ( https://rpm.newrelic.com/) ), called Scaling Rails ( http://railslab.newrelic.com/scaling-rails ). It's phenomenal . That link shows the "contents" on the left-hand sidebar. Start at the bottom and work your way up the list.
That looks phenomenal. Is it equally-applicable to, say, Django development? Or is there a sister-series?
http://ontwik.com/python/django-deployment-workshop-by-jacob...
Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#35Fascinating news!
Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#36Earlier quoted context omitted.
As you rightly said - the key limit if you get to such high I/O levels is first with OS processing - the implementation of the network stack on the iron - with performance above 50k the limit comes from the "pipes" moving the data up from the network card to the OS layer where the web server sits (and providing the layer 4 / TCP services). Hence in telcom environments where you get such requirements the TCP/IP stack…
I think using a generic OS for IO operations is not a good idea in general. We all do it but there got to be a better solution. We don't need kernel/userland isolation that introduces mode switching, stack copying, copying arguments etc... In such an OS, the environment is under our supervision and processes are trusted.
Generally Linux / Unix (carrier grade / HA) is used within such environments as the OS. Context switches (user land / kernel) are some of the most expensive operations so they are to be avoided as often as possible.
What you're pointing to are features you generally find in RTOS (real-time OS) solutions - and these kind of cards / platforms allow using them. Look up the Trillium platform from CCPU for example how such a stack / system is layered - they use Wind River PNE-LE (Linux edition for network equipment) for the HA & non-HA protocols.
Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#37Sigh, another completely synthetic benchmark with big iron: A dual Intel Xeon X5670 with 24GB of RAM from SoftLayer. The X5670 has 6 cores @ 2.93 GHz, 2 threads per core, /proc/cpuinfo shows 24 CPUs. Serving a plain HTML page over localhost via nginx. A medium length blog post with pretty much no real-world information.
Still, for comparison a huge site like reddit is serving around 1000 pageviews per second. The hardware in this post isn't that good, nowadays you can do quite a bit better. If you could get even 0.02% of these pageviews per second out of more modern hardware that's already 100 pageviews per second. Only a handful of sites need more than that. For example HN certainly does not. And AFAIK HN runs single core on a lang…
I don't know if reddit could run on a single server, but this benchmark does nothing to prove it. A pageview on reddit consist of several http requests. A http requests translates into several requests into a database backend. In this syntactic benchmark he is requesting the same static file over and over again, so nginx and/or linux can cache it in memory (or CPU cache).
Also even if they could put reddit on a single server, it would require a lot of optimization and engineering time is more expensive than hardware. It would also make adding new futures in the future a pain in ass, because you would have to be very greedy with CPU time (and other resources like memory, bandwidth, etc...). Also you want a multi-server setup for redundancy and handling extra capacity.
EDIT: I don't if you also planning to put the database on the same server? Web servers are basically stateless so they are easy to scale. It would be interesting to calculate how much disks that server would need just to handle the IO throughput.
Full disclosure: This is some speaking who used to work for social network with 9M users and 3,000 servers.
Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#38Since this is almost pure sendfile() work (aside from the headers), it really doesn't seem like a very useful example... there isn't much static content left on the web.
Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#39Earlier quoted context omitted.
Still, for comparison a huge site like reddit is serving around 1000 pageviews per second. The hardware in this post isn't that good, nowadays you can do quite a bit better. If you could get even 0.02% of these pageviews per second out of more modern hardware that's already 100 pageviews per second. Only a handful of sites need more than that. For example HN certainly does not. And AFAIK HN runs single core on a lang…
Dude... I am sorry, but your reply does not make sense on many levels: I don't know if reddit could run on a single server, but this benchmark does nothing to prove it. A pageview on reddit consist of several http requests. A http requests translates into several requests into a database backend. In this syntactic benchmark he is requesting the same static file over and over again, so nginx and/or linux can cache it…
Even though a pageview on reddit translates to several HTTP requests, only one of those requests has to serve dynamic HTML. The requests that get the JS, CSS and images can go to a content delivery network (and they probably already do). You'd probably indeed want to put the database on the same server, with the vast majority of DB accesses hitting main memory (as you can easily get a server with hundreds of gigabytes or even terabytes of RAM nowadays -- it helps that reddit's access pattern is very heavily concentrated on new posts). Of course you have to replicate to multiple servers to prevent data loss.
9M users and 3,000 servers sounds like a lot. What kind of servers are these? What is the size of the database, roughly?
Re: 500,000 Requests/Sec – Modern HTTP Servers Are Fast
#40Sigh, another completely synthetic benchmark with big iron: A dual Intel Xeon X5670 with 24GB of RAM from SoftLayer. The X5670 has 6 cores @ 2.93 GHz, 2 threads per core, /proc/cpuinfo shows 24 CPUs. Serving a plain HTML page over localhost via nginx. A medium length blog post with pretty much no real-world information.
That's a commodity 2CPU machine these days, and about a month from being dethroned by the new E5 Xeons. Serving over multiple 10GE to front end cache servers physically colocated with it would be realistic -- not sure how much of a hit that would be vs. over localhost. Static vs. dynamic content is a reasonable optimization to make for an application under heavy load.