CentOS 7 Load Balance

Great article for quick and dirty setup of haproxy on CentOS 7 (RHEL 7)

And a similar article for LVS (iplvadm)

To cement the iplvadm config:
# This worked the first time, but not the second. Needed to use zone ‘internal’
firewall-cmd –zone=private –add-interface=ens9

# add the line NM_CONTROLLED=no
vi /etc/sysconfig/network-scripts/ifcfg-Wired_connection_1
service network restart

# then… And make it permanent
firewall-cmd –zone=public –add-masquerade
firewall-cmd –permanent –zone=public –add-masquerade
firewall-cmd –permanent –zone=internal –add-interface=ens9

I found this to be helpful in setting up keepalived

Comments are closed.