Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux_wiki:load_balancing_haproxy_and_keepalived [2018/04/09 00:12] billdozor [HA-Proxy] |
linux_wiki:load_balancing_haproxy_and_keepalived [2018/04/09 00:19] billdozor [HA-Proxy] |
||
---|---|---|---|
Line 89: | Line 89: | ||
Official Site: http:// | Official Site: http:// | ||
+ | |||
+ | ==== Main Config ==== | ||
* Configure HA-Proxy (/ | * Configure HA-Proxy (/ | ||
* Remove all example frontend and backend config sections (leave default section) | * Remove all example frontend and backend config sections (leave default section) | ||
+ | * Add a section for the HAProxy Stats page< | ||
+ | # HAProxy Stats | ||
+ | # | ||
+ | listen stats | ||
+ | # SSL Mode and Cert | ||
+ | bind *:9000 ssl crt / | ||
+ | mode http | ||
+ | |||
+ | # Enable Stats and Hide Version | ||
+ | stats enable | ||
+ | stats hide-version | ||
+ | |||
+ | # Authentication realm. This can be set to anything. Escape space characters with a backslash. | ||
+ | stats realm HAProxy\ Statistics | ||
+ | |||
+ | # The virtual URL to access the stats page | ||
+ | stats uri / | ||
+ | |||
+ | # The user/pass you want to use. Change this password! | ||
+ | stats auth admin: | ||
+ | * The pem certificate file is a concatenation of the SSL key, cert, and certificate authority. Example< | ||
+ | |||
+ | ==== Frontend/ | ||
+ | |||
* Create new directory to hold frontend/ | * Create new directory to hold frontend/ | ||
* Create new frontend/ | * Create new frontend/ | ||
Line 199: | Line 225: | ||
* Stop keepalived on the active system in order to force a fail over< | * Stop keepalived on the active system in order to force a fail over< | ||
* Verify connections to the frontend listeners go away< | * Verify connections to the frontend listeners go away< | ||
- | * Reboot the system with keepalived stopped< | + | * Reboot the system with keepalived stopped |
---- | ---- | ||