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 | # log localhost:514 local7 debug |
| 6 | # debug |
| 7 | stats socket /tmp/haproxy.sock mode 666 level admin |
| 8 | |
| 9 | defaults |
| 10 | log global |
| 11 | mode http |
| 12 | option httplog |
| 13 | option dontlognull |
| 14 | option httpclose |
| 15 | retries 3 |
| 16 | maxconn 4000 |
| 17 | timeout connect 5000 |
| 18 | timeout client 50000 |
| 19 | timeout server 50000 |
| 20 | |
| 21 | listen stats |
| 22 | mode http |
| 23 | bind *:8001 |
| 24 | stats uri / |
| 25 | stats admin if TRUE |
| 26 | stats refresh 10s |
| 27 | |
| 28 | frontend ot-test-sa-frontend |
| 29 | bind *:10080 |
| 30 | mode http |
| 31 | default_backend servers-backend |
| 32 | |
| 33 | acl acl-http-status-ok status 100:399 |
| 34 | filter opentracing id ot-test-sa config sa/ot.cfg |
| 35 | http-response ot-group ot-test-sa http_response_group if acl-http-status-ok |
| 36 | http-after-response ot-group ot-test-sa http_after_response_group if !acl-http-status-ok |
| 37 | |
| 38 | backend servers-backend |
| 39 | mode http |
| 40 | server server-1 127.0.0.1:8000 |