Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx Cloudflare Blog: How we scaled nginx...

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Aug 1, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    36,422
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    9:08 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Cloudflare blog has a new article titled How we scaled nginx and saved the world 54 years every day

    nice Centmin Mod 123.09beta01's Nginx uses SO_REUSEPORT if detected linux kernel supports it too see Nginx - [nginx-announce] nginx-1.9.1 and Socket Sharding in NGINX OSS Release 1.9.1
    awesome improvement and looks like Cloudflare will be open sourcing this change too
    Centmin Mod Nginx is built so patching can be automated so can't wait :D
     
    Last edited: Aug 1, 2018
    • Winner Winner x 1
  2. eva2000

    eva2000 Administrator Staff Member

    36,422
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    9:08 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    more discussions on these Cloudflare improvements to their version of Nginx at How we scaled Nginx | Hacker News with user = khc being the Cloudflare blog author

    Author here. I've talked to a nginx product manager and he's told me changes th... | Hacker News
     
  3. dcg

    dcg Member

    53
    18
    8
    Oct 17, 2015
    Florida, USA
    Ratings:
    +34
    Local Time:
    7:08 AM
    1.15.x
    10.2.x
    Do you think that having a site delivered via cloudflare is a better option than direct access? They do seem to have their infrastructure/cache/security always at the front of the pack.
    What disadvantages do you see being behind cloudflare?
    Thanks
    -david
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,422
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    9:08 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    with gradual improvement over the years and 151+ data centers, Cloudflare has come along way and definitely security and performance are the big reasons why I moved my site over. But you'd have to configure it properly and depends on your geographical location of your visitors. As CF is like a CDN, benefits are greater for visitors who are geographically further away from your origin server.

    FYI, Cloudflare has submitted the above Nginx patch to Nginx for consideration at cache: move open to thread pool and also available via forum feed displayed thread at cache: move open to thread pool

    Of concern is this Nginx patch when enabled would disable nginx open_file_cache which may result performance depending on your Nginx usage.
     
    • Informative Informative x 1
  5. bassie

    bassie Active Member

    982
    235
    43
    Apr 29, 2016
    Ratings:
    +695
    Local Time:
    1:08 PM
    Already refused by the Nginx team and as there is no response from Cloudfare with a fixed patch.
    Big Chances are that this will not happen.
    Re: cache: move open to thread pool
     
    • Informative Informative x 1
  6. eva2000

    eva2000 Administrator Staff Member

    36,422
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    9:08 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Thanks for heads up. Really wish I had the coding chops to be able to follow all of what Maxim wrote in response and commentary/corrections to the patch :)
     
  7. bassie

    bassie Active Member

    982
    235
    43
    Apr 29, 2016
    Ratings:
    +695
    Local Time:
    1:08 PM
    The problem is that the Nginx team is pretty stubborn.
    Numerous patches from Google and Cloudflare developers where refused in the past.
     
  8. eva2000

    eva2000 Administrator Staff Member

    36,422
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    9:08 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yeah I guess that have one vision for what Nginx core has code wise and that might not be inline with what others submit in terms of patches etc. Great thing about opensource is folks are free to fork and build their own patched version of Nginx. Centmin Mod Nginx has its own build /config different from other distros offered Nginx too because of this :)

    Here's to Cloudflare re-working their patch for this based on Maxim's comment/corrections :)
     
  9. bassie

    bassie Active Member

    982
    235
    43
    Apr 29, 2016
    Ratings:
    +695
    Local Time:
    1:08 PM
    Yup. Problem is that one company is taken the cost and competitors go through with the profits.
    Cloudflare has tried it with her patches but eventually stopped.

    Would love the use Cloudflare's Nginx code plus BoringSSL with stapling (not using it myself), old chacha and all the others optimized code.
    But it is not going to happen.
     
    • Agree Agree x 1
  10. bassie

    bassie Active Member

    982
    235
    43
    Apr 29, 2016
    Ratings:
    +695
    Local Time:
    1:08 PM
    Confirmation from Cloudflare itself.: John Graham-Cumming:
     
..