File: test-map-ports.cfg

package info (click to toggle)
haproxy 3.2.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,928 kB
  • sloc: ansic: 268,119; sh: 3,466; xml: 1,756; python: 1,345; makefile: 1,155; perl: 168; cpp: 21
file content (31 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This is a test configuration.
# It presents 4 instances using fixed and relative port assignments from
# ports 8001 to 8004. TCP only is used, and the destination address is not
# relevant (use netstat -an).

global
	maxconn		100

defaults
        mode            tcp
        timeout client      15000
        timeout server      15000
        timeout connect      15000
	balance roundrobin

listen  fixed
        bind		:8001
	server s1 1.1.1.1:8001

listen  same
        bind		:8002
	server s2 1.1.1.2

listen  plus1000
        bind		:8003
	server s3 1.1.1.3:+1000

listen  minus1000
        bind		:8004
	server s4 1.1.1.4:-1000