librelist archives

« back to archive

Photon is really stable under load - first page of Hacker News without caching

Photon is really stable under load - first page of Hacker News without caching

From:
Loic d'Anterroches
Date:
2012-03-14 @ 08:59
Hello,

here are some graphs from tonight. Basically a blog post made the first
page of Hacker News:

http://news.ycombinator.com/item?id=3700489
http://blog.baregit.com/2012/bootstrap-or-not-bootstrap

The effect was a big spike of traffic against Mongrel2 (only the non SSL
traffic is tracked, I need to track SSL traffic too, but I suppose it
was not significant).

http://cdn.ceondo.com/photon/photon-load-requests-per-minute.png

What is interesting is that the memory usage of the Photon processes
which are just PHP processes with forced garbage collection every 500
hits but without restart. PHP very nicely garbage collected, so the
memory is always coming back to the baseline of a non loaded system.
This is running PHP 5.3.8 at the moment.

http://cdn.ceondo.com/photon/photon-load-memory-usage.png

Half of the traffic went on the main Baregit website, you can notice
that the external control doing get requests and measuring the response
time was basically unaffected. chemeo.com which is normally under low
load but served from the same infrastructure was also unaffected.

http://cdn.ceondo.com/photon/photon-load-response-time.png

Finally the application server had a load near zero. So, this means that
from the CPU point of view, it can grow nicely.

http://cdn.ceondo.com/photon/photon-load-midterm-load.png

What is important to note is that:

- all the traffic is handled by Photon processes, even the assets are
  served through them;
- zero caching, no Varnish, no Memcached, nothing. Everything from the
  database (a MongoDB replica set) or the Photon processes (.phar);
- snappy;
- basically, zero load on the system.

A nice day...
loïc

Re: [photon.users] Photon is really stable under load - first page of Hacker News without caching

From:
Nicolas
Date:
2012-04-04 @ 15:03
That's impressive...Assuming that the CPU load and RAM usage raises in a
linear way, there's room for a lot more trafic before you run into limits.

Next step : Slashdot's homepage ! :)

Nicolas


On Wed, Mar 14, 2012 at 9:59 AM, Loic d'Anterroches <loic@ceondo.com> wrote:

> Hello,
>
> here are some graphs from tonight. Basically a blog post made the first
> page of Hacker News:
>
> http://news.ycombinator.com/item?id=3700489
> http://blog.baregit.com/2012/bootstrap-or-not-bootstrap
>
> The effect was a big spike of traffic against Mongrel2 (only the non SSL
> traffic is tracked, I need to track SSL traffic too, but I suppose it
> was not significant).
>
> http://cdn.ceondo.com/photon/photon-load-requests-per-minute.png
>
> What is interesting is that the memory usage of the Photon processes
> which are just PHP processes with forced garbage collection every 500
> hits but without restart. PHP very nicely garbage collected, so the
> memory is always coming back to the baseline of a non loaded system.
> This is running PHP 5.3.8 at the moment.
>
> http://cdn.ceondo.com/photon/photon-load-memory-usage.png
>
> Half of the traffic went on the main Baregit website, you can notice
> that the external control doing get requests and measuring the response
> time was basically unaffected. chemeo.com which is normally under low
> load but served from the same infrastructure was also unaffected.
>
> http://cdn.ceondo.com/photon/photon-load-response-time.png
>
> Finally the application server had a load near zero. So, this means that
> from the CPU point of view, it can grow nicely.
>
> http://cdn.ceondo.com/photon/photon-load-midterm-load.png
>
> What is important to note is that:
>
> - all the traffic is handled by Photon processes, even the assets are
>  served through them;
> - zero caching, no Varnish, no Memcached, nothing. Everything from the
>  database (a MongoDB replica set) or the Photon processes (.phar);
> - snappy;
> - basically, zero load on the system.
>
> A nice day...
> loïc
>
>