Get the most out of your Centmin Mod LEMP stack
Become a Member

Nginx 123.08zerodown ?

Discussion in 'Beta release code' started by pamamolf, Nov 15, 2014.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:02 AM
    Nginx-1.25.x
    MariaDB 10.3.x
  2. eva2000

    eva2000 Administrator Staff Member

    53,461
    12,128
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,668
    Local Time:
    1:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    It's test Centmin Mod .08 beta branch for zero downtime Nginx upgrade process testing Nginx zero downtime upgrade process for .08 beta · 5d7178b · centminmod/centminmod · GitHub as opposed to the current method of Nginx upgrade which has a few seconds of downtime during upgrades

    sample from last part of test Nginx upgrade's make, make install (clean) and process via verbose debugging at each stage outlined at Controlling nginx

    Code:
    *************************************************
    Fri Nov 14 11:12:47 EST 2014
    Success: Nginx make ok
    *************************************************
    nginx master id: 23438
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    8717 23701 root      0.0 101020 pipe_w egrep (nginx|PID)
    23438     1 root      0.0 122284 rt_sig nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    23470 23438 nginx     0.0 132528 ep_pol nginx: worker process                                   
    23702 23558 root      0.0 100912 pipe_w tee /root/centminlogs/centminmod_1.2.3-eva2000.08_141114-111106_nginx_upgrade.log
    make -f objs/Makefile install
    make[1]: Entering directory `/svr-setup/nginx-1.7.7'
    test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
    test -d '/usr/local/sbin'               || mkdir -p '/usr/local/sbin'
    test ! -f '/usr/local/sbin/nginx'               || mv '/usr/local/sbin/nginx'                   '/usr/local/sbin/nginx.old'
    cp objs/nginx '/usr/local/sbin/nginx'
    test -d '/usr/local/nginx/conf'                 || mkdir -p '/usr/local/nginx/conf'
    cp conf/koi-win '/usr/local/nginx/conf'
    cp conf/koi-utf '/usr/local/nginx/conf'
    cp conf/win-utf '/usr/local/nginx/conf'
    test -f '/usr/local/nginx/conf/mime.types'              || cp conf/mime.types '/usr/local/nginx/conf'
    cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
    test -f '/usr/local/nginx/conf/fastcgi_params'          || cp conf/fastcgi_params '/usr/local/nginx/conf'
    cp conf/fastcgi_params          '/usr/local/nginx/conf/fastcgi_params.default'
    test -f '/usr/local/nginx/conf/fastcgi.conf'            || cp conf/fastcgi.conf '/usr/local/nginx/conf'
    cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
    test -f '/usr/local/nginx/conf/uwsgi_params'            || cp conf/uwsgi_params '/usr/local/nginx/conf'
    cp conf/uwsgi_params            '/usr/local/nginx/conf/uwsgi_params.default'
    test -f '/usr/local/nginx/conf/scgi_params'             || cp conf/scgi_params '/usr/local/nginx/conf'
    cp conf/scgi_params             '/usr/local/nginx/conf/scgi_params.default'
    test -f '/usr/local/nginx/conf/nginx.conf'              || cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
    cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
    test -d '/usr/local/nginx/logs'                 || mkdir -p '/usr/local/nginx/logs'
    test -d '/usr/local/nginx/logs' ||              mkdir -p '/usr/local/nginx/logs'
    test -d '/usr/local/nginx/html'                 || cp -R html '/usr/local/nginx'
    test -d '/usr/local/nginx/logs' ||              mkdir -p '/usr/local/nginx/logs'
    make[1]: Leaving directory `/svr-setup/nginx-1.7.7'
    rm -rf Makefile objs
    real    0m0.175s
    user    0m0.039s
    sys     0m0.088s
    USR2
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    8747 23701 root      0.0 101020 pipe_w egrep (nginx|PID)
    8748 23438 root      0.0  61112 sync_p /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    23438     1 root      0.0 122284 rt_sig nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    23470 23438 nginx     0.0 132528 ep_pol nginx: worker process                                   
    23702 23558 root      0.0 100912 pipe_w tee /root/centminlogs/centminmod_1.2.3-eva2000.08_141114-111106_nginx_upgrade.log
    WINCH
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    8748 23438 root      0.0  61204 -      /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    8750 23701 root      0.0 101020 pipe_w egrep (nginx|PID)
    23438     1 root      0.0 122284 rt_sig nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    23702 23558 root      0.0 100912 pipe_w tee /root/centminlogs/centminmod_1.2.3-eva2000.08_141114-111106_nginx_upgrade.log
    QUIT
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    8748 23438 root      0.0  61444 -      /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    8752 23701 root      0.0 101020 pipe_w egrep (nginx|PID)
    23438     1 root      0.0  63764 -      nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    23702 23558 root      0.0 100912 pipe_w tee /root/centminlogs/centminmod_1.2.3-eva2000.08_141114-111106_nginx_upgrade.log
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Reloading nginx:                                           [  OK  ]
    nginx master id: 8748
      PID  PPID USER     %CPU    VSZ WCHAN  COMMAND
    8748     1 root      7.0 122540 -      nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    8766  8748 nginx     0.0 131100 ep_pol nginx: worker process                                   
    8774 23701 root      0.0 101020 pipe_w egrep (nginx|PID)
    23702 23558 root      0.0 100912 pipe_w tee /root/centminlogs/centminmod_1.2.3-eva2000.08_141114-111106_nginx_upgrade.log
    *************************************************
    Fri Nov 14 11:12:48 EST 2014
    Success: Nginx was installed properly
    *************************************************
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:02 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    That's great but why not added to the main 08 beta as it works without problems than creating a new setup?
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,461
    12,128
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,668
    Local Time:
    1:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I don't know if it works 100% yet, it's for my own testing branch :)
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:02 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok thanks :)

    This will be great to see it on the main centminmod soon :)