Discover Centmin Mod today
Register Now

Beta Branch enable Cloudflare zlib performance library by default for Nginx zlib

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 24, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    12:01 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    enable Cloudflare zlib performance library by default for Nginx zlib

    - set CLOUDFLARE_ZLIB='y' by default. Very little risk as the routine now has error checking so if Cloudflare zlib library install fails, Centmin Mod will fall back to standard custom zlib 1.2.11 library install for Nginx zlib
    - with Cloudflare zlib performance library usage, Nginx HTTP gzip compressed request performance can improve up to 29% over standard zlib 1.2.11 library


    Continue reading...

    123.09beta01 branch
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    5:01 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Maybe to add a notification at the end if nginx compiled with the patched zlib or not so the user will know without to check manually?
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    12:01 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    end of nginx compiles usually gives a nginx -V output so visually you can see already

     
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,070
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    5:01 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Don’ remember that output ...

    Ok thanks :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    12:01 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    It's not very ending output it's a bit further up before the displayed log file listing
     
  6. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    12:01 AM
    Do I need to do anything at all to get the optimizations?

    I've updated the git base, and reinstalled nginx. Any extra configuration required?

    Code:
    ginx version: nginx/1.13.9
    built by gcc 7.2.1 20170829 (Red Hat 7.2.1-1) (GCC)
    built with OpenSSL 1.1.0g  2 Nov 2017
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib' --with-cc-opt='-m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.4.2 --add-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.31 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.14 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre=../pcre-8.41 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.0g --with-openssl-opt='enable-ec_nistp_64_gcc_128'
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,558
    12,135
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,678
    Local Time:
    12:01 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+