Hi,

On Wed, Jan 31, 2018 at 10:41:44AM +0800, ??? wrote:
> *hi all,*
> *    recently we are ready to upgrade to haproxy 1.8,however, when testing
> HTTP2, we found a drop in performance,below is the test scenario:*
(...)
> *Use h2load test, respectively, test http1.1 and http2, A total of three
> sets of data,haproxy reached cpu 100%,*
> *         group 1:*
> 
>           h2load -n1000000 -c20 -m5 https://$0.172.144.113:1999/128
> 
>           starting benchmark...
>           spawning thread #0: 20 total client(s). 1000000 total requests
>           TLS Protocol: TLSv1.2
>           Cipher: ECDHE-RSA-AES256-GCM-SHA384
>           Application protocol: h2
>           ......
> 
>           finished in 86.23s, 11596.77 req/s, 2.90MB/s
(...)
>          *group2:*
> 
>           h2load -n1000000 -c20 -m1 https://10.172.144.113:1999/128 --h1
>           starting benchmark...
>           spawning thread #0: 20 total client(s). 1000000 total requests
>           TLS Protocol: TLSv1.2
>           Cipher: ECDHE-RSA-AES256-GCM-SHA384
>           Application protocol: http/1.1
>           ......
> 
>           finished in 73.72s, 13564.36 req/s, 4.42MB/s
(...)
>           * group3:*
> 
>            h2load -n1000000 -c100 -m1 https://10.172.144.113:1999/128 --h1
>            starting benchmark...
>            spawning thread #0: 100 total client(s). 1000000 total requests
>            TLS Protocol: TLSv1.2
>            Cipher: ECDHE-RSA-AES256-GCM-SHA384
>            Application protocol: http/1.1
>            ......
> 
>            finished in 67.84s, 14739.69 req/s, 4.81MB/s
(...)
> *Is this phenomenon normal? Or my way of using is wrong?*

"Normal" isn't the exact word, but I'd say reasonably expected however.

The main difference between the H1 and H2 tests is that when H2 is used
on the frontend, we can't yet reuse the connection on the backend, so
you're working exactly in the same situation as if you were running with
"option http-server-close". You may be interested in doing this test by
the way, just to compare similar stuff.

Willy

Reply via email to