2013-03-12 08:35:13 +01:00
|
|
|
---
|
2013-03-20 06:07:11 +01:00
|
|
|
# Variables for the HAproxy configuration
|
2013-03-12 08:35:13 +01:00
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# HAProxy supports "http" and "tcp". For SSL, SMTP, etc, use "tcp".
|
2013-03-12 08:35:13 +01:00
|
|
|
mode: http
|
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# Port on which HAProxy should listen
|
2013-03-12 08:35:13 +01:00
|
|
|
listenport: 8888
|
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# A name for the proxy daemon, this wil be the suffix in the logs.
|
2013-03-12 08:35:13 +01:00
|
|
|
daemonname: myapplb
|
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# Balancing Algorithm. Available options:
|
|
|
|
# roundrobin, source, leastconn, source, uri
|
|
|
|
# (if persistance is required use, "source")
|
2013-03-12 08:35:13 +01:00
|
|
|
balance: roundrobin
|
|
|
|
|
2013-03-20 06:07:11 +01:00
|
|
|
# Ethernet interface on which the load balancer should listen
|
2013-03-13 15:46:18 +01:00
|
|
|
iface: eth0
|