Discover Centmin Mod today
Register Now

PHP-FPM Centminmod not working well on OpenVZ platform?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Mike Guista, Jun 13, 2015.

  1. Mike Guista

    Mike Guista New Member

    20
    10
    3
    Sep 15, 2014
    Ratings:
    +10
    Local Time:
    8:53 AM
    1.7.6
    10.x
    Hi,
    I'm not sure if it is the correct section to post the issue. However, it seems to me Centminmod is not working quite well on OpenVZ platforms. Save PHP-FPM settings on a KVM VPS works fine while on OpenVZ, php is crashing frequently.

    blitz.io test on Centminmod 0.07
    =======
    44 hits with 0 errors & 15,790 timeouts

    This rush generated 44 successful hits in 60 seconds and we transferred 2.50 MB of data in and out of your app. The average hit rate of 0.73/second translates to about 63,360 hits/day.
    The average response time was 781 ms.

    blitz.io test on Centminmod 0.08
    =======
    0 hits with 0 errors & 15,803 timeouts

    This rush generated 0 successful hits in 60 seconds and we transferred 2.12 MB of data in and out of your app. The average hit rate of 0.00/second translates to about 0 hits/day.
    The average response time was 0 ms.
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,027
    6,588
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,780
    Local Time:
    1:53 AM
    Nginx 1.13.x
    MariaDB 5.5
    You mean for benchmark scaling tests ? That is nature of OpenVZ you can not do TCP level tuning to scale better like you can on KVM/XEN/VMWare or dedicated servers. Centmin Mod installer detects if OpenVZ virtualisation exists and if it does, skips any TCP tuning basics. Only non-OpenVZ VPS get basic auto TCP tuned settings on initial Centmin Mod installation.

    That's why I avoid OpenVZ if you want to scale your site/web app better.

    As to other tuning and optimisations for blitz.io depending on your web app you will need to tune nginx, mariadb mysql and php-fpm as Centmin Mod defaults are just starters.. the rest is up to you.
     
  3. Mike Guista

    Mike Guista New Member

    20
    10
    3
    Sep 15, 2014
    Ratings:
    +10
    Local Time:
    8:53 AM
    1.7.6
    10.x
    Thanks for your reply, @eva2000
    It worked nicely before, so I thought new versions might be not working well with OpenVZ. I guess it's time to upgrade my VPSs to KVM or Xen.
     
  4. Mask

    Mask Active Member

    104
    29
    28
    Nov 10, 2014
    Ratings:
    +35
    Local Time:
    8:53 PM
    Nginx 1.9.1
    MariaDB 10.0.19
    Hello Mike,
    Well I am not sure what spec you have for the VPS. But I can tell you CMM is not an issue, nor is using OpenVZ. More like whoever has managing the server needs to do a better job :)

    I am one of those here who is using OpenVZ based VPS. It's working flawlessly and have seen no issue at all. One of the site I manage is pretty high traffic site.
    As eva2000 said, you can not do sysctl tweaking from VPS end if it's OpenVZ so the server guy needs to work on it. (If you are with a good provider, they probably already have done it). In my case, the server guy is my friend and he had done a great job :)

    IMO, OpenVZ based VPS will give you more performance than XEN/KVM with same spec. You just need to find the good host out there.

    If you like, send me a PM and I can have a look at your settings/config. Or I can also setup a test VPS for you just to show you it works pretty good even with OpenVZ :)
     
    • Informative Informative x 1
  5. Epic Internet Marketing

    Epic Internet Marketing Member

    40
    7
    8
    Aug 3, 2014
    New York, NY
    Ratings:
    +18
    Local Time:
    1:53 AM
    1.12.x | PHP 7.1.x
    10.1
    I feel like the sites I'm running on OpenVZ @ Ramnode are running wayyy faster than the KVM @ Vultr for the 256mb it's MUCH faster page loads than 512mb DO, and 768mb Vultr.. What's going on? Also, why do people say that OpenVZ is so insecure? I don't think hosts would run it it it was openly flawed.
     
  6. eva2000

    eva2000 Administrator Staff Member

    29,027
    6,588
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,780
    Local Time:
    1:53 AM
    Nginx 1.13.x
    MariaDB 5.5
    Really depends on what you're testing. For ultimate scalability, KVM > OpenVZ due to above mentioned reasons in this thread.

    Probably, OpenVZ is used more for newer or not so experienced web hosts, on the lower price market and are not updated as often as they should be ?? Who knows heh. Just choose the right tool (virtualisation method) for the right job and you'll be fine :)
     
    Last edited: Dec 9, 2015
    • Useful Useful x 1
  7. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    11:53 AM
    latest
    10
    and where exactly are those KVM tweaks located at @eva2000 ? How to find them?
     
  8. eva2000

    eva2000 Administrator Staff Member

    29,027
    6,588
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,780
    Local Time:
    1:53 AM
    Nginx 1.13.x
    MariaDB 5.5