How to configure more than one Master for redundancy or load balancing
It is possible to have multiple Masters in UPM for either failover (redundancy) or load balancing. How can this be configured?
Follow the steps below to configure a second or multiple master:
Install and configure your first master (master1)
Install the second master (master2) and copy configuration files pm.settings and pm.conf from master1 to master2
For your pmrun/pmlocald agents amend the pm.settings file so that the masters entry is aware of both master1 and master2, eg
masters master1 master2
Depending on whether you are then looking for load balancing or redundancy or a combination of both you can use further settings in the pm.settings on the pmrun/pmlocald agents.
Two optional settings allow this behaviour to be configured:
FailOverTimeout is followed by the number of seconds that pmrun will continue retrying each masterhost before it moves on. There is a one-second delay between retries on the same host, eg the following sets the retry to 10 seconds
SelectHostRandom followed by a "yes" will loadbalance the masterhost list in a random order each time and use this list as its connect order for masterhosts, eg