Join the community today
Register Now

Beta Branch add zstd compression supported nginx & php-fpm log rotation in 123.09…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jan 1, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    55,805
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    add zstd compression supported nginx & php-fpm log rotation in 123.09beta01


    - prior to initial centmin mod 123.09beta01 and higher install, setting ZSTD_LOGROTATE_NGINX='y' & ZSTD_LOGROTATE_PHPFPM='y' in created persistent config file /etc/centminmod/custom_config.inc, will allow you to switch from standard gzip compressed nginx & php-fpm rotated logs to using facebook's zstd compression algorithm for compressing nginx & php-fpm logs. This is done by modifying default logrotate profiles for nginx at /etc/logrotate.d/nginx and php-fpm at /etc/logrotate.d/php-fpm. This can result in over 28% smaller compressed nginx & php-fpm logs when logrotate processes them as shown here Sysadmin - Compressed Log Files Rotation With Facebook zstd For Smaller Log Sizes
    - ZSTD_LOGROTATE_NGINX & ZSTD_LOGROTATE_PHPFPM variables are disabled by default as ZSTD_LOGROTATE_NGINX='n' and ZSTD_LOGROTATE_PHPFPM='n' and only applies to initial centmin mod installs, setting has no affect after centmin mod is installed as logrotation for nginx & php-fpm are setup and configured at initial centmin mod install time only. If you want to enable this after centmin mod is installed, you'd have to use manual steps outlined here Sysadmin - Compressed Log Files Rotation With Facebook zstd For Smaller Log Sizes for both logrotate profiles for nginx at /etc/logrotate.d/nginx and php-fpm at /etc/logrotate.d/php-fpm

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,805
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. eva2000

    eva2000 Administrator Staff Member

    55,805
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+