Join the community today
Become a Member

Nginx Brotli Module Update To Fix 100% CPU Load Issues

Discussion in 'Centmin Mod News' started by eva2000, Apr 18, 2020.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    2:08 AM
    Nginx 1.25.x
    MariaDB 10.x
    Centmin Mod 123.09beta01 and newer has Nginx with optional Nginx Brotli HTTP compression support via Google's ngx_brotli module which you can enable as outlined at How to use Brotli compression for Centmin Mod Nginx web servers. However, some folks reported that enabling ngx_brotli Nginx module would cause high 100% cpu load issues. The issue has apparently been fixed now in latest ngx_brotli module commit.

    Centmin Mod Nginx Updating ngx_brotli

    For Centmin Mod Nginx users, you can update ngx_brotli module by updating Centmin Mod 123.09beta01 to latest code via command
    Code (Text):

    Code (Text):
    Saved working directory and index state WIP on 123.09beta01: b23bcb7 bug fix in inc/ in 123.09beta01
    HEAD is now at b23bcb7 bug fix in inc/ in 123.09beta01
    remote: Enumerating objects: 5, done.
    remote: Counting objects: 100% (5/5), done.
    remote: Compressing objects: 100% (5/5), done.
    remote: Total 5 (delta 0), reused 1 (delta 0), pack-reused 0
    Unpacking objects: 100% (5/5), done.
       b23bcb7..5cd76ab  123.09beta01 -> origin/123.09beta01
    Updating b23bcb7..5cd76ab
    Fast-forward              | 2 +-
     inc/ | 9 ++++++++-
     2 files changed, 9 insertions(+), 2 deletions(-)

    Then recompiling Nginx via menu option 4.
    Code (Text):
         Centmin Mod Menu 123.09beta01  
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer (TBA)
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    Enter option [ 1 - 24 ] 4

    With the added update I made today, the Nginx version command (nginx -V) will output a build tag which also displays ngx_brotli module's latest commit hash so you can check if you have latest ngx_brotli module updates built for Centmin Mod Nginx binary :)

    Example below where (170420-163956-centos7-b23bcb7-br-bcceaab) is the build tag which now shows data stamp 170420 for April 17, 2020 build from Centmin Mod commit b23bcb7 from commit history at centminmod/centminmod and because NGINX_LIBBROTLI='y' was enabled as per instructions, also shows bcceaab which at time of writing is latest commit from ngx_brotli history at google/ngx_brotli. This makes troubleshooting easier as you know the state of the Nginx version built.
    If you have issues, please at a reply to thread at Nginx - How to use Brotli compression for Centmin Mod Nginx web servers.
    Last edited: Apr 18, 2020
Thread Status:
Not open for further replies.