Without "http-request set-header host" and "http-request replace-path", balance algorithm works the same for both http/1.1 and http/2.
2020년 9월 21일 (월) 오후 4:55, Sehoon Kim <[email protected]>님이 작성: > In 2.2.3, http/2 and http/1.1 request seems to select different servers. > But in 2.0.17, http/2 and http/1.1 request seems to select same servers. > > So, we can't use backend cache farm effectively, because of low cache hit > ratio. > > 2020년 9월 21일 (월) 오후 4:48, Jonathan Matthews <[email protected]>님이 > 작성: > >> Perhaps you could expand upon the differences you perceive, and the >> effect and impact they’re having? >> >> On Mon, 21 Sep 2020 at 07:51, Sehoon Kim <[email protected]> wrote: >> >>> Hi, >>> >>> We are upgrading from haproxy 2.0.17 to 2.2.3. >>> And we use path rewriting and "balance uri whole" before sever selection. >>> >>> But server selection in 2.2.3 seems to be different from 2.0.17. >>> >>> ------------------------------------------------------------------------- >>> backend bk_test >>> balance uri whole >>> hash-type consistent >>> >>> # Rewrite Host Header >>> http-request set-header Host >>> %[path,map_beg(/etc/haproxy/acl/test.path,test.com)] >>> http-request deny if { hdr(Host) test.com } >>> http-request replace-path /[\w.]*/(.*) /\1 >>> >>> server test1 10.1.1.1:80 check >>> server test2 10.1.1.2:80 check >>> server test310.1.1.3:80 check >>> server test4 10.1.1.4:80 check >>> server test5 10.1.1.5:80 check >>> server test6 10.1.1.6:80 check >>> server test7 10.1.1.7:80 check >>> server test810.1.1.8:80 check >>> server test9 10.1.1.9:80 check >>> server test10 10.1.1.10:80 check >>> >>> >>> Thanks, >>> Seri >>> >>> >>> -- >> Jonathan Matthews >> https://jpluscplusm.com >> >

