Learn about Centmin Mod LEMP Stack today
Become a Member

Master Branch enable nginx brotli module on Intel Skylake & newer cpus in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 11, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    38,023
    8,350
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,863
    Local Time:
    1:09 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    enable nginx brotli module on Intel Skylake & newer cpus in 123.09beta01

    Auto enable nginx brotli module if Intel Skylake or newer cpus exist newer cpus allow brotli compressed nginx files to be served faster https://community.centminmod.com/posts/70527/. Using cpu avx512 flag as an indicator of whether Intel Skylake or newer cpu is detected. When detected, Centmin Mod initial install routine will automatically enable Nginx brotli module as a dynamic Nginx module and via NGINX_BROTLIDEP_UPDATE='y', automatically modify Nginx brotli module to use the latest tagged version of Google Brotli rather than the version included in Nginx brotli module as that version lags behind the versions available for Google Brotli.

    The 3 variables enabled when avx512 cpu flag is detected are

    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    NGINX_BROTLIDEP_UPDATE='y'

    These variables can still be overriden on subsequent nginx recompiles or if set before initial install via the persistent config file /etc/centminmod/custom_config.inc

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.
     
..