Want more timely Centmin Mod News Updates?
Become a Member

Upgrade Kernel 5.2

Discussion in 'Install & Upgrades or Pre-Install Questions' started by EckyBrazzz, Aug 27, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    587
    125
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +231
    Local Time:
    4:14 AM
    1.17.x
    10.3.x
    Hi there,

    I use the new kernel, less memory usage better preformance.
    But had to make some small adjustments to my nginx.conf

    To get the nginx-bad-bot blocker to work I had to add this line
    Code (Text):
    limit_req_zone $binary_remote_addr zone=flood:50m rate=90r/s;
    

    Set it to 90 because a lower setting would create some WordPress issues.

    Another issue / argument is the setting
    Code (Text):
    sendfile on;
    aio on;
    

    I have the settig sendfile off;
    Code (Text):
    sendfile off;
    aio on;
    sendfile_max_chunk 512k;
    tcp_nopush  on;
    


    I followed the instructions here Master Branch - add NGINX_IOURING_PATCH variable support in 123.09beta01

    And my custom_config.inc includes
    Code (Text):
    NGINX_IOURING_PATCH='y'         #  https://nginx.org/en/docs/http/ngx_http_core_module.html#aio


    Going to double check it now. Strange it did not change the sendfile to the correct setting.

    Noticed on a recompile that I was missing Development Tools
    Code (Text):
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 4
    --------------------------------------------------------
    
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
     [y/n]: y
    *************************************************
    * Installing Development Tools
    *************************************************
    please wait for yum download and installs to complete.
    yum installs in less verbose mode so final install status is only shown..
    


    I normally don't press Y, but wanted to be sure I did not miss anything, new server so just checking.

    Edit>
    Continueof recompile.... It hangs
    Code (Text):
    ---------------------------------------------------------------------------
    nginx master id: 18636
    ---------------------------------------------------------------------------
    Active connections: 3
    server accepts handled requests
     28629 28629 45994
    Reading: 0 Writing: 1 Waiting: 2
    ---------------------------------------------------------------------------
    kill -USR2 18636
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    18636     1 root      0.0 981412 sigsus nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    22605 18636 nginx     0.3 1018292 ep_pol nginx: worker process
    22606 18636 nginx     0.3 1018288 ep_pol nginx: worker process
    
    -rwxr-xr-x  1 root root 4.9M Aug 27 01:49 /usr/local/sbin/nginx
    -rwxr-xr-x. 1 root root 4.9M Aug 21 02:02 /usr/local/sbin/nginx.old
    ---------------------------------------------------------------------------
    Active connections: 3
    server accepts handled requests
     28630 28630 46003
    Reading: 0 Writing: 1 Waiting: 2
    ---------------------------------------------------------------------------
    kill -WINCH 18636
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    18636     1 root      0.0 981412 sigsus nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    ---------------------------------------------------------------------------
    

    executed in other open shell
    Code (Text):
    kill -USR2 18636

    And it continues again.
    But soon after that next issue
    Code (Text):
    checking... worker child PPID=18636 exists
     checking... worker child PPID=18636 exists
     checking... worker child PPID=18636 exists
     checking... worker child PPID=18636 exists
     checking... worker child PPID=18636 exists
     checking... worker child PPID=18636 exists
     checking... worker child PPID=18636 exists
     checking... worker child PPID=18636 exists
    

    Again in onther open shell
    Code (Text):
    kill -9 18636

    And nginx recompile is ready

    Check nginx.conf file...

    Code (Text):
    sendfile off;
    aio on;
    sendfile_max_chunk 512k;
    tcp_nopush  on;
    

    No changes, so manual changed sendfile on;

    Strange, want to trouble shoot it.
     
    Last edited: Aug 27, 2019
    • Informative Informative x 1