Willy Tarreau | 73290cc | 2008-04-12 11:19:04 +0200 | [diff] [blame] | 1 | # This is a test configuration. |
| 2 | # It presents 4 instances using fixed and relative port assignments from |
| 3 | # ports 8001 to 8004. TCP only is used, and the destination address is not |
| 4 | # relevant (use netstat -an). |
| 5 | |
| 6 | global |
| 7 | maxconn 100 |
| 8 | |
| 9 | defaults |
| 10 | mode tcp |
Willy Tarreau | d4359fd | 2021-04-02 10:49:34 +0200 | [diff] [blame] | 11 | timeout client 15000 |
| 12 | timeout server 15000 |
| 13 | timeout connect 15000 |
Willy Tarreau | 73290cc | 2008-04-12 11:19:04 +0200 | [diff] [blame] | 14 | balance roundrobin |
| 15 | |
| 16 | listen fixed |
| 17 | bind :8001 |
| 18 | server s1 1.1.1.1:8001 |
| 19 | |
| 20 | listen same |
| 21 | bind :8002 |
| 22 | server s2 1.1.1.2 |
| 23 | |
| 24 | listen plus1000 |
| 25 | bind :8003 |
| 26 | server s3 1.1.1.3:+1000 |
| 27 | |
| 28 | listen minus1000 |
| 29 | bind :8004 |
| 30 | server s4 1.1.1.4:-1000 |
| 31 | |