Discover Centmin Mod today
Register Now

Beta Branch nginx 1.17.3 dynamtic tls & hpack patch support in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 14, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    42,346
    9,560
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,732
    Local Time:
    11:55 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 2
    • Winner Winner x 1
  2. eva2000

    eva2000 Administrator Staff Member

    42,346
    9,560
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,732
    Local Time:
    11:55 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    HPACK patch working fine when Centmin Mod 123.09beta01 or newer Nginx with set in persistent config file /etc/centminmod/custom_config.inc with variable
    Code (Text):
    NGINX_HPACK='y'

    tested with 3 versions of nghttp2's h2load
    Code (Text):
    h2load --version
    h2load nghttp2/1.31.1
    
    h2loadnew --version
    h2load nghttp2/1.36.0
    
    h2loadnewer --version
    h2load nghttp2/1.40.0-DEV
    

    Nginx 1.17.3 with full HTTP/2 HPACK encoding support

    h2load 1.31.1
    Code (Text):
    url=https://yourdomain.com
    for i in $(seq 1 10); do echo "h2load run $i"; h2load $url -n $i | tail -6 | head -1; done                                                                                                                      
    h2load run 1
    traffic: 4.02KB (4116) total, 248B (248) headers (space savings 35.25%), 3.71KB (3801) data
    h2load run 2
    traffic: 7.76KB (7950) total, 263B (263) headers (space savings 65.67%), 7.42KB (7602) data
    h2load run 3
    traffic: 11.51KB (11784) total, 278B (278) headers (space savings 75.81%), 11.14KB (11403) data
    h2load run 4
    traffic: 15.25KB (15618) total, 293B (293) headers (space savings 80.87%), 14.85KB (15204) data
    h2load run 5
    traffic: 19.00KB (19452) total, 308B (308) headers (space savings 83.92%), 18.56KB (19005) data
    h2load run 6
    traffic: 22.74KB (23286) total, 323B (323) headers (space savings 85.94%), 22.27KB (22806) data
    h2load run 7
    traffic: 26.48KB (27120) total, 338B (338) headers (space savings 87.39%), 25.98KB (26607) data
    h2load run 8
    traffic: 30.23KB (30954) total, 353B (353) headers (space savings 88.48%), 29.70KB (30408) data
    h2load run 9
    traffic: 33.97KB (34788) total, 368B (368) headers (space savings 89.32%), 33.41KB (34209) data
    h2load run 10
    traffic: 37.72KB (38622) total, 383B (383) headers (space savings 90.00%), 37.12KB (38010) data
    

    h2load 1.36.0
    Code (Text):
    url=https://yourdomain.com
    for i in $(seq 1 10); do echo "h2load run $i"; h2loadnew $url -n $i | tail -6 | head -1; done                                                                                                                      
    h2load run 1
    traffic: 4.02KB (4116) total, 248B (248) headers (space savings 35.25%), 3.71KB (3801) data
    h2load run 2
    traffic: 7.76KB (7950) total, 263B (263) headers (space savings 65.67%), 7.42KB (7602) data
    h2load run 3
    traffic: 11.51KB (11784) total, 278B (278) headers (space savings 75.81%), 11.14KB (11403) data
    h2load run 4
    traffic: 15.25KB (15618) total, 293B (293) headers (space savings 80.87%), 14.85KB (15204) data
    h2load run 5
    traffic: 19.00KB (19452) total, 308B (308) headers (space savings 83.92%), 18.56KB (19005) data
    h2load run 6
    traffic: 22.74KB (23286) total, 323B (323) headers (space savings 85.94%), 22.27KB (22806) data
    h2load run 7
    traffic: 26.48KB (27120) total, 338B (338) headers (space savings 87.39%), 25.98KB (26607) data
    h2load run 8
    traffic: 30.23KB (30954) total, 353B (353) headers (space savings 88.48%), 29.70KB (30408) data
    h2load run 9
    traffic: 33.97KB (34788) total, 368B (368) headers (space savings 89.32%), 33.41KB (34209) data
    h2load run 10
    traffic: 37.72KB (38622) total, 383B (383) headers (space savings 90.00%), 37.12KB (38010) data
    

    h2load 1.40 DEV
    Code (Text):
    url=https://yourdomain.com
    
    for i in $(seq 1 10); do echo "h2load run $i"; h2loadnewer $url -n $i | tail -6 | head -1; done                                                                                                                      h2load run 1
    traffic: 4.02KB (4116) total, 248B (248) headers (space savings 35.25%), 3.71KB (3801) data
    h2load run 2
    traffic: 7.76KB (7950) total, 263B (263) headers (space savings 65.67%), 7.42KB (7602) data
    h2load run 3
    traffic: 11.51KB (11784) total, 278B (278) headers (space savings 75.81%), 11.14KB (11403) data
    h2load run 4
    traffic: 15.25KB (15618) total, 293B (293) headers (space savings 80.87%), 14.85KB (15204) data
    h2load run 5
    traffic: 19.00KB (19452) total, 308B (308) headers (space savings 83.92%), 18.56KB (19005) data
    h2load run 6
    traffic: 22.74KB (23286) total, 323B (323) headers (space savings 85.94%), 22.27KB (22806) data
    h2load run 7
    traffic: 26.48KB (27120) total, 338B (338) headers (space savings 87.39%), 25.98KB (26607) data
    h2load run 8
    traffic: 30.23KB (30954) total, 353B (353) headers (space savings 88.48%), 29.70KB (30408) data
    h2load run 9
    traffic: 33.97KB (34788) total, 368B (368) headers (space savings 89.32%), 33.41KB (34209) data
    h2load run 10
    traffic: 37.72KB (38622) total, 383B (383) headers (space savings 90.00%), 37.12KB (38010) data
    

    with full HTTP/2 HPACK encoding patched Nginx, the subsequent runs of h2load will show increasing 'space savings' in headers section up to 90-99% i.e.
    Code (Text):
    headers (space savings 90.00%)

    as opposed to Nginx's default partial HTTP/2 HPACK implementation which would see header space savings capped around 18-22%
     
    • Like Like x 2
  3. rdan

    rdan Well-Known Member

    4,739
    1,144
    113
    May 25, 2014
    Ratings:
    +1,709
    Local Time:
    9:55 AM
    Mainline
    10.2
    I thought this is On by default?
    Same as NGINX_DYNAMICTLS?
     
  4. eva2000

    eva2000 Administrator Staff Member

    42,346
    9,560
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,732
    Local Time:
    11:55 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    nope both aren't enabled by default :)
     
    • Informative Informative x 1
  5. Dnyan

    Dnyan Member

    65
    10
    8
    Sep 16, 2017
    Ratings:
    +12
    Local Time:
    7:25 AM
    1.17.2
    10.1.41
    mine showing

    headers (space savings 82.57%)

    with h2load nghttp2/1.31.1
     
  6. eva2000

    eva2000 Administrator Staff Member

    42,346
    9,560
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,732
    Local Time:
    11:55 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Space savings depends on actual content and its header response sizes for your page you're testing
     
    • Like Like x 1