Aerosol Posted March 23, 2015 Report Posted March 23, 2015 For today we will try to load balance 2 Debian servers. This tool can be used for servers like Web, Application, Gateway and so on. Toold used for this is named UCARP and is very good for high-availability servers. To be able to use it we must install it for both servers named in this example WS1 and WS2 using command:~# apt-get install ucarp -yReading package lists... DoneBuilding dependency treeReading state information... DoneThe following extra packages will be installed: libpcap0.8The following NEW packages will be installed: libpcap0.8 ucarp0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.Need to get 165 kB of archives.After this operation, 504 kB of additional disk space will be used.After installing we should edit /etc/network/interfaces file on both servers. For WS1 the config file will look like the next one:auto eth0iface eth0 inet staticaddress 192.168.69.10netmask 255.255.255.0network 192.168.69.0broadcast 192.168.1.255gateway 192.168.69.1ucarp-vid 2ucarp-vip 192.168.69.2ucarp-password Hackyarducarp-advskew 10ucarp-advbase 1ucarp-master yesauto eth0:ucarpiface eth0:ucarp inet staticaddress 192.168.69.12netmask 255.255.255.255 For WS2 the config file will look like the next one:auto eth0iface eth0 inet staticaddress 192.168.69.11netmask 255.255.255.0network 192.168.69.0broadcast 192.168.1.255gateway 192.168.69.1ucarp-vid 2ucarp-vip 192.168.69.2ucarp-password Hackyarducarp-advskew 20ucarp-advbase 1ucarp-master noauto eth0:ucarpiface eth0:ucarp inet staticaddress 192.168.69.12netmask 255.255.255.255After done editing both interfaces config file we will restart interfaces using command:# /etc/init.d/networking restartNow load-balancing server is done.Author: razvan1@hy Quote