Installing Failover VIP on Solaris 10 x86
Since I don't have a working alternative on Solaris:
To avoid losing service access due to the loss of a single load balancer I’m writing a simple program that will run on each of the primary and secondary HAProxy servers. Each will monitor the alternate with a TCP connection. If it sees the alternate VIP disappear it will attempt to reestablish the connection to eliminate transient events. If still down and it can access the gateway it will up the VIP on its own OS. It will continue to monitor the alternate VIP. If it sees the alternate VIP available again, it will enter a small random wait. If the alternate stays up it will down the VIP on its own OS. The later is to avoid duplicate IPs and flapping.
netstart -rn | grep default
Use linux and keepalived, it's simpler and it works.
Tried the following, but make failed:
Download and install tk
gunzip tk-8.5.3-sol10-x86-local.gz
pkgadd -d tk-8.5.3-sol10-x86-local
Download and install tcl
gunzip tcl-8.5.3-sol10-x86-local.gz
pkgadd -d tcl-8.5.3-sol10-x86-local
Download, build, and install Pth - GNU Portable Threads
gunzip pth-2.0.7.tar.gz
tar -xvf pth-2.0.7.tar
cd pth-2.0.7
read README
make sure gcc can be found in path and install/add if not
which gcc
./configure
make
make install
Download configure, and install Failover
gunzip failover-0.5.21.tar.gz
tar -xvf failover-0.5.21.tar
cd failover-0.5.21
read the README
./configure - had to add /usr/local/lib to LD
make - Failed!
Fatal error: Command failed for target `all-recursive'
To avoid losing service access due to the loss of a single load balancer I’m writing a simple program that will run on each of the primary and secondary HAProxy servers. Each will monitor the alternate with a TCP connection. If it sees the alternate VIP disappear it will attempt to reestablish the connection to eliminate transient events. If still down and it can access the gateway it will up the VIP on its own OS. It will continue to monitor the alternate VIP. If it sees the alternate VIP available again, it will enter a small random wait. If the alternate stays up it will down the VIP on its own OS. The later is to avoid duplicate IPs and flapping.
netstart -rn | grep default
Use linux and keepalived, it's simpler and it works.
Tried the following, but make failed:
Download and install tk
gunzip tk-8.5.3-sol10-x86-local.gz
pkgadd -d tk-8.5.3-sol10-x86-local
Download and install tcl
gunzip tcl-8.5.3-sol10-x86-local.gz
pkgadd -d tcl-8.5.3-sol10-x86-local
Download, build, and install Pth - GNU Portable Threads
gunzip pth-2.0.7.tar.gz
tar -xvf pth-2.0.7.tar
cd pth-2.0.7
read README
make sure gcc can be found in path and install/add if not
which gcc
./configure
make
make install
Download configure, and install Failover
gunzip failover-0.5.21.tar.gz
tar -xvf failover-0.5.21.tar
cd failover-0.5.21
read the README
./configure - had to add /usr/local/lib to LD
make - Failed!
Fatal error: Command failed for target `all-recursive'
Comments