Ubuntu Pastebin

Paste from Muntaner at Tue, 10 Mar 2015 11:05:38 +0000

Download as text
 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
44
root@juju-openstack-machine-82:/home/ubuntu# cat /etc/haproxy/haproxy.cfg 
global
    log 127.0.0.1 local0
    log 127.0.0.1 local1 notice
    maxconn 4096
    user haproxy
    group haproxy
    debug
    spread-checks 0

defaults
    log global
    mode http
    option httplog
    option dontlognull
    retries 3
    timeout queue 20000
    timeout client 50000
    timeout connect 5000
    timeout server 50000

frontend haproxy-0-10000
    bind 0.0.0.0:10000
    default_backend haproxy_monitoring
    mode http

backend haproxy_monitoring
    mode http
    acl allowed_cidr src 127.0.0.1/32
    block unless allowed_cidr
    stats enable
    stats uri /
    stats realm Haproxy\ Statistics
    stats auth haproxy:6JTtrTR6xFcMppC3pNm9
    stats refresh 3

frontend haproxy-0-80
    bind 0.0.0.0:80
    default_backend haproxy_service

backend haproxy_service
    balance roundrobin
    cookie SRVNAME insert
    server e-commerce-1-8080 10.0.0.7:8080 cookie S0 check
Download as text