2013-03-12 08:35:13 +01:00
|
|
|
---
|
|
|
|
# File for the HAproxy configuration
|
|
|
|
|
2013-03-13 15:46:18 +01:00
|
|
|
# Supports http and tcp, for ssl smtp etc.. use tcp
|
2013-03-12 08:35:13 +01:00
|
|
|
mode: http
|
|
|
|
|
2013-03-13 15:46:18 +01:00
|
|
|
# port on which the lb should listen
|
2013-03-12 08:35:13 +01:00
|
|
|
listenport: 8888
|
|
|
|
|
2013-03-13 15:46:18 +01:00
|
|
|
# A name for the proxy daemon, this would be the suffix in the logs.
|
2013-03-12 08:35:13 +01:00
|
|
|
daemonname: myapplb
|
|
|
|
|
2013-03-13 15:46:18 +01:00
|
|
|
# Balancing Algorithm Avalilable options: roundrobin,source,leastconn,source,uri
|
|
|
|
# (if persistance is required use source)
|
2013-03-12 08:35:13 +01:00
|
|
|
balance: roundrobin
|
|
|
|
|
2013-03-13 15:46:18 +01:00
|
|
|
# Which Ethernet interface on which the load balancer should listen
|
|
|
|
iface: eth0
|