Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch raise default worker_connections limit from 15k to 50k in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 15, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:34 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    4:34 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    Why such a big change? :wideyed:

    Also...if I resize my Linode deployment to upgrade the server, will CMM auto optimize for the new specs or does it do that only on initial CMM installation?
     
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    7:34 PM
    1.13.x
    MariaDB 10.1.x
    New default worker_connections. ;)

    IMG_2223-550x412.jpg
     
    • Like Like x 1
    • Funny Funny x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    resized servers you'd need to edit it yourself as Centmin Mod only tries to optimise initial install setup and not override end users own changes they may have made. That wouldn't go down well with folks who changed their settings later on and only to find Centmin Mod undoing their changes :)

    change made due to experiences like https://community.centminmod.com/threads/slow-performance-under-load.11328/

    123.08stable was developed 2-3 yrs ago and back then server hardware isn't as capable as it is now - processors are faster and single cpu thread performance is much better and performance to price ratios much higher. So for 123.09beta01, a higher starting value seems more sensible.

    i.e. my Wordpress7 site on 2GB DigitalOcean VPS can push 240-300+ million hits/day on 10k user blitz.io test Wordpress 7 Site Updates - wordpress7.centminmod.com with redis or static file caching pushing 4,000 to 5,000 requests/second.
     
    • Like Like x 1
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    FYI new 50k defaults in theory allows worker_connections/keep alive time = 50k/5s = 10,000 requests/s per worker_process / cpu thread. Provided you have server resources to service such on non-OpenVZ servers. OpenVZ won't be able to as there's no permission to tweak TCP settings and uses whatever TCP settings set at OpenVZ host node level unlike dedicated or Xen, KVM or VMWare servers which allow you and Centmin Mod to auto tweak TCP settings.
     
  6. tjk

    tjk Member

    74
    16
    8
    Jun 27, 2015
    Ratings:
    +25
    Local Time:
    7:34 PM
    @eva2000 understand why you don't go back and make changes, but it sure would be nice to have a single page that says something like "new config defaults are these values, you may want to check or change file XYZ".

    I guarantee you there are a ton of folks that leave your default values per the install process, and after all the changes you are making along the way they aren't getting the benefit of said changes.
     
    • Agree Agree x 3
    • Like Like x 1
  7. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    indeed will have to address that.

    Maybe just have it so centmin mod detects if the expected default existing value is seen, then auto change to new defaults. That way I don't override folks custom values :)
     
    • Like Like x 2
  8. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    4:34 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    Hmm I never made any edits to my config and the default is 10,000. Should I increase? :)
     
  9. tjk

    tjk Member

    74
    16
    8
    Jun 27, 2015
    Ratings:
    +25
    Local Time:
    7:34 PM
    Maybe make it a configurable option, install-default-values=y and on update/run check and update if need be, if not just notify them there are new values but don't auto update them.
     
  10. Sunka

    Sunka Active Member

    932
    242
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +392
    Local Time:
    1:34 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I raise yesterday to 15000 (from default 10000), and will raise again to 50000.
    And yes, I agree to have a single page that says something like "new config defaults are these values, you may want to check or change file XYZ".
    It will be much easier to see new changes/values and add them to our conf.
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:34 AM
    Nginx 1.13.x
    MariaDB 5.5
  12. tjk

    tjk Member

    74
    16
    8
    Jun 27, 2015
    Ratings:
    +25
    Local Time:
    7:34 PM
    And this is why I LOVE Centminmod and you @eva2000!

    I have more ideas around docs and such, which will make it easier for new users, will type those ideas up and start a new thread.

    Thank you for all your hard work, we all appreciate it!
     
    • Like Like x 1
  13. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:34 AM
    Nginx 1.13.x
    MariaDB 5.5
  14. Jimmy

    Jimmy Premium Member Premium Member

    1,165
    256
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +626
    Local Time:
    7:34 PM
    1.13.x
    MariaDB 10.1.x
    Maybe a feedback tool for items that have been modified or items that are important and should be watched.

    tools/compare.sh

    CMM default worker_connections: 50,000
    server.yourserver.com: 10,000

    Add whatever else is necessary to compare.

    Could also provide site admins valuable information in-case they entered the wrong value somewhere.
     
    • Agree Agree x 2
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    30,947
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    10:34 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah that might be a good idea .. maybe add to cminfo command Centmin Mod installs :)
     
    • Useful Useful x 2
    • Like Like x 1