Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Talks #67 - Bogdan Radulescu - Scalable and red...

Talks #67 - Bogdan Radulescu - Scalable and redundant infrastructures

Having your website or application go viral it's probably the thing many of us dreamed at least once. Even though it's one of the coolest thing that could happen is actually quite possible enough traffic would bring it down.
It's clear for everyone that having your website go down when you have the most people online is just not good. In order to avoid this and achieve scalability we are going to have a look at how and when we can scale different layers of technology.

Talks by Softbinator

May 20, 2015
Tweet

More Decks by Talks by Softbinator

Other Decks in Programming

Transcript

  1. What is a scalable system? Ideally: A system which can

    grow proportionally Real life: An inexpensive solution to grow enough
  2. The requirements Handle flash traffic at a periodic interval. Have

    a product which can grow 10x in one year.
  3. Apache httpd + mod_* Very well known and compatible MPM

    (prefork, worker, event) Ability to process dynamic content .htacess NginX + FastCGI Very fast and low memory usage Event based Uses external processor (FPM) The web servers
  4. The web servers <IfModule mpm_prefork_module> StartServers 3 MinSpareServers 3 MaxSpareServers

    5 MaxClients 30 MaxRequestsPerChild 0 </IfModule> <IfModule mpm_prefork_module> StartServers 10 MinSpareServers 10 MaxSpareServers 25 MaxClients 200 MaxRequestsPerChild 10000 </IfModule>