I have a server with KVM libvirt and OVS. Debian 8.6.

I am currently running 2 web servers with installed nginx+php5-fpm on VM . HAProxy is used to balance requests and installed on KVM virtual machine. PHP sessions are stored on memcached on another VM. Web site is written in Yii2 framework.

Every 15 minutes or 30 minutes the load average of web servers are increasing untill 200-300. The capacity of Database is around 1GB. The type of site is media. A lot of contents and live tv channels.

How to solve this problem ?

enter image description here enter image description here enter image description here enter image description here

  • 1
    Please add to the post if hosting services, if any CMSs, what kind of sites, and the ouput of 'uptime', 'vmstat' and 'iostat' Commented Dec 7, 2016 at 7:50
  • I have added additional info. Commented Dec 7, 2016 at 8:57
  • All the data you posted seems a somewhat healthy system. Are you able to duplicate the same data when the load problems happen? Commented Dec 7, 2016 at 13:25
  • Yes, I'm. I will catch this moment and post. Commented Dec 7, 2016 at 19:07

1 Answer 1


Find the next solution: How to stream on demand video with load balancing

Basically is to enable a module in nginx, this may lead to improve on how the servers serve the videos and better manage their resources.

  • The answer that I offer is technically simple, I consider that if the answer is complex or not completely clear I would take its recommendation but this is not the case and would basically duplicate content, likewise, I will take the recommendation for future answers.
    – Alejandro
    Commented Jan 30, 2017 at 22:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .