Miroslav Zagorac | 70230c6 | 2020-12-09 16:54:31 +0100 | [diff] [blame] | 1 | global |
| 2 | # nbthread 1 |
| 3 | maxconn 5000 |
| 4 | hard-stop-after 10s |
| 5 | stats socket /tmp/haproxy.sock mode 666 level admin |
| 6 | |
| 7 | defaults |
| 8 | log global |
| 9 | mode http |
| 10 | option httplog |
| 11 | option dontlognull |
| 12 | option httpclose |
| 13 | retries 3 |
| 14 | maxconn 4000 |
| 15 | timeout connect 5000 |
| 16 | timeout client 50000 |
| 17 | timeout server 50000 |
| 18 | |
| 19 | listen stats |
| 20 | mode http |
| 21 | bind *:8001 |
| 22 | stats uri / |
| 23 | stats admin if TRUE |
| 24 | stats refresh 10s |
| 25 | |
| 26 | frontend ot-test-ctx-frontend |
| 27 | bind *:10080 |
| 28 | mode http |
| 29 | default_backend servers-backend |
| 30 | |
| 31 | acl acl-http-status-ok status 100:399 |
| 32 | filter opentracing id ot-test-ctx config ctx/ot.cfg |
| 33 | http-response ot-group ot-test-ctx http_response_group if acl-http-status-ok |
| 34 | http-after-response ot-group ot-test-ctx http_after_response_group if !acl-http-status-ok |
| 35 | |
| 36 | backend servers-backend |
| 37 | mode http |
| 38 | server server-1 127.0.0.1:8000 |