File: basic-test.cfg

package info (click to toggle)
haproxy 1.3.15.2-2%2Blenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,780 kB
  • ctags: 2,264
  • sloc: ansic: 21,832; perl: 543; sh: 407; makefile: 339; xml: 124
file content (43 lines) | stat: -rw-r--r-- 1,532 bytes parent folder | download | duplicates (5)
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
32
33
34
35
36
37
38
39
40
41
42
43
# This is a test configuration.
# It requires another server running on local port 9000, preferably httpterm
# with the file 'httpterm-basic.cfg' from the same directory.
#
# It will wait for HTTP connections on port 8000 and TCP connections on port
# 8001. It will load-balance them across active servers, and will be able to
# validate queuing. Stats are available at URI /?stats.

global
	maxconn		500

defaults
        contimeout      1000
        clitimeout      5000
        srvtimeout      5000
        retries         1
        redispatch

listen  http_1
        mode            http
        bind :8000
        option		httplog
        option          dontlognull
        maxconn 400
        balance roundrobin
        server  srv1 127.0.0.1:9000 cookie s1 check port 9000 inter 1000 fall 1
        server  srv2 127.0.0.2:9000 cookie s2 check port 9000 inter 1000 fall 1
        server  srv3 127.0.0.3:9000 cookie s3 check port 9000 inter 1000 fall 1
        server  srv4 127.0.0.4:9000 cookie s4 check port 9000 inter 1000 fall 1
        option  httpclose
	errorloc 503 /503
	stats uri /?stats

listen  tcp_1
        bind :8001
        mode            tcp
        maxconn 400
        balance roundrobin
        server  srv1 127.0.0.1:9000 cookie s1 check port 9000 inter 1000 fall 1
        server  srv2 127.0.0.2:9000 cookie s2 check port 9000 inter 1000 fall 1
        server  srv3 127.0.0.3:9000 cookie s3 check port 9000 inter 1000 fall 1
        server  srv4 127.0.0.4:9000 cookie s4 check port 9000 inter 1000 fall 1