Discover Centmin Mod today
Register Now

Install New'ish install debug

Discussion in 'Install & Upgrades or Pre-Install Questions' started by gabel, May 23, 2018.

  1. gabel

    gabel Premium Member Premium Member

    30
    17
    8
    Jan 7, 2016
    Ratings:
    +26
    Local Time:
    7:58 AM
    1.9.9
    MariaDB 10
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 7 64bit
    • Centmin Mod Version Installed: 23.09beta01
    • Nginx Version Installed: 1.13.12
    • PHP Version Installed: 5.6.36
    • MariaDB MySQL Version Installed: i.e. 10.0.21 or 10.1.21
    • When was last time updated Centmin Mod code base ? : a few seconds ago
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:

      cat /etc/centminmod/custom_config.inc


      Code:
       cat /etc/centminmod/custom_config.inc
      NGINX_ZLIBCUSTOM='y'
      ORESTY_LUANGINX=n
      NGINX_XSLT='n'
      NGINX_LIBBROTLI='y'
      NGXDYNAMIC_XSLT='n'
      NGXDYNAMIC_IMAGEFILTER='y'
      NGXDYNAMIC_GEOIP='y'
      NGXDYNAMIC_STREAM='y'
      NGXDYNAMIC_HEADERSMORE='y'
      NGXDYNAMIC_SETMISC='y'
      NGXDYNAMIC_ECHO='y'
      NGXDYNAMIC_SRCCACHE='y'
      NGXDYNAMIC_MEMC='y'
      NGXDYNAMIC_REDISTWO='y'
      NGXDYNAMIC_NGXPAGESPEED='y'
      NGXDYNAMIC_BROTLI='y'
      PHPMSSQL='y'
      PHP_PGO='y'
      PHP_PGO_CENTOSSIX='y'
      NGINX_DEVTOOLSETGCC='y'
      GENERAL_DEVTOOLSETGCC='y'
      CLANG='n'
      LIBRESSL_SWITCH='n'
      NGX_GSPLITDWARF='y'
      PHP_GSPLITDWARF='y'
      NGX_LDGOLD='y'
      NGINX_MP4='y'
      NGINX_FLV='y'
    Due to the low results on https://community.centminmod.com/th...inx-http-2-https-benchmarks.14832/#post-63668 @eva2000 suggested i open a new thread to see what could be wrong .

    What other logs should i post ?
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,603
    7,841
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,085
    Local Time:
    4:58 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Was this a fresh 123.09beta01 install or did you upgrade previously from 123.08stable etc ?

    I've since updated https_bench.sh so you can update it first
    Code (Text):
    wget -O /root/tools/https_bench.sh https://github.com/centminmod/centminmodbench/raw/master/https_bench.sh
    

    then instead of running it as is, edit /root/tools/https_bench.sh variable HTTPS_BENCHCLEANUP='y' change it to HTTPS_BENCHCLEANUP='n' by overriding it in a separately created file persistent config file at /root/tools/https_bench.ini
    Code (Text):
    echo "HTTPS_BENCHCLEANUP='n'" > /root/tools/https_bench.ini
    

    setting HTTPS_BENCHCLEANUP='n' will disable auto removal of test http2.domain.com nginx vhost site leaving it available after https_bench.sh run for manual testing
    then run it https_bench.sh once to create test http2.domain.com site
    Code (Text):
    time /root/tools/https_bench.sh
    

    Then you can troubleshoot in SSH session against http2.domain.com site

    check site header
    Code (Text):
    curl -Ik https://http2.domain.com
    

    example output
    Code (Text):
    curl -Ik https://http2.domain.com
    HTTP/1.1 200 OK
    Date: Tue, 22 May 2018 23:31:43 GMT
    Content-Type: text/html; charset=utf-8
    Content-Length: 6457
    Last-Modified: Tue, 22 May 2018 22:06:02 GMT
    Connection: keep-alive
    Vary: Accept-Encoding
    ETag: "5b04944a-1939"
    Server: nginx centminmod
    X-Powered-By: centminmod
    Accept-Ranges: bytes
    

    Then check index.html page of site to make sure it's place holder index.html sometimes /etc/hosts isn't setup properly so you end up testing a real site external to centmin mod server or not the intended local server test http2.domain.com site i.e. might test against php file instead of index.html site so h2load would overload the php-fpm server instead of testing nginx static file performance.
    Code (Text):
    curl -ks https://http2.domain.com | grep 'http2.domain.com'
    

    output
    Code (Text):
    curl -ks https://http2.domain.com | grep 'http2.domain.com'
      <meta content="http2.domain.com nginx site generated by centminmod.com" name="description">
      <title>http2.domain.com</title>
            <h1 class="brand-title">Welcome to http2.domain.com</h1>
                  <h2 class="post-title">http2.domain.com</h2>
                  <p>Welcome to http2.domain.com. This index.html page can be removed.</p>
    


    Then try manually running h2load test against test http2.domain.com site
    Code (Text):
    h2load --ciphers=ECDHE-RSA-AES128-GCM-SHA256 -H 'Accept-Encoding: gzip' -c100 -n1000 https://http2.domain.com
    

    example on my E3-1270v1 server
    Code (Text):
    h2load --ciphers=ECDHE-RSA-AES128-GCM-SHA256 -H 'Accept-Encoding: gzip' -c100 -n1000 https://http2.domain.com
    starting benchmark...
    spawning thread #0: 100 total client(s). 1000 total requests
    TLS Protocol: TLSv1.2
    Cipher: ECDHE-RSA-AES128-GCM-SHA256
    Server Temp Key: ECDH P-256 256 bits
    Application protocol: h2
    progress: 10% done
    progress: 20% done
    progress: 30% done
    progress: 40% done
    progress: 50% done
    progress: 60% done
    progress: 70% done
    progress: 80% done
    progress: 90% done
    progress: 100% done
    
    finished in 259.72ms, 3850.29 req/s, 8.35MB/s
    requests: 1000 total, 1000 started, 1000 done, 1000 succeeded, 0 failed, 0 errored, 0 timeout
    status codes: 1000 2xx, 0 3xx, 0 4xx, 0 5xx
    traffic: 2.17MB (2274000) total, 154.39KB (158100) headers (space savings 29.73%), 2.00MB (2093000) data
                         min         max         mean         sd        +/- sd
    time for request:      421us     57.61ms     11.50ms      4.25ms    82.80%
    time for connect:    34.94ms    132.74ms    112.67ms     29.52ms    86.00%
    time to 1st byte:    40.41ms    146.84ms    128.14ms     32.36ms    88.00%
    req/s           :      38.90      186.83       56.44       45.26    88.00%
    
     
    Last edited: May 23, 2018
..