Configuring your system for high availability
To recover from outages that might include planned events (such as maintenance and backups) and unplanned events (such as software failures, hardware failures, power failures, and disasters) you can configure an Eclipse Amlen server to serve as a backup.
You might want to configure your system for high availability (HA) in case the primary server experiences a failure. If your server is configured to be highly available, the standby server automatically takes over as the new primary server if the original primary server fails. After the original primary is available again, it acts as the standby server.
Connecting a pair of servers for high availability
Servers are identified as- Primary
- The server that is processing messages.
- Standby
- The backup server to which the primary server is replicated.
Configuring server parameters to support HA
To use the HA feature, you must enable high availability and assign a group name on both servers. You must consider the values that you want to assign to the following parameters before you configure a pair of servers for HA:
- Group
- Group is used to identify which server to pair with. The value must be the same on both servers. The maximum length of this value is 128 characters.
- Startup mode
- A node can be set in either auto-detect or stand-alone mode.
- In auto-detect mode, two nodes must be started. The nodes automatically try to detect one another and establish an HA pair.
- Use stand-alone mode only when you are starting a single node. Stand-alone mode is used to bring up a single node with the intention to later bring up another node that synchronizes with the first node and creates an HA pair.
- Local Discovery Address, Local Replication Address and Remote Discovery Address
- In an HA environment, you must have two network interfaces for each server - a replication interface and a discovery interface.
- Timeouts
- The discovery timeout is the amount of time, in seconds, within which a server that is started in auto-detect mode must connect to the other server in the HA pair. The valid range is 10 - 2147483647. The default is 600. If the connection is not made within that time, the server starts in maintenance mode.
- Clock synchronization and MaxMessageTimeToLive
- Consider the value of the MaxMessageTimeToLive parameter on your messaging policies when you synchronize the clocks on the servers in the HA pair. This parameter specifies the maximum time that a put or published message can exist for in Eclipse Amlen. The smaller the value of this parameter is, the closer you need to synchronize the clocks on the HA pair. For example, if you set a MaxMessageTimeToLive value of 3600, which equates to 1 hour, you can synchronize the clocks on the HA pair to within 1 or 2 minutes of each other. If you set a MaxMessageTimeToLive value of 1, which equates to 1 second, synchronize the clocks on the HA pair to within 100 milliseconds. Use a network time protocol (NTP) server to keep the clocks synchronized.
After the servers are configured, you must stop and restart the Eclipse Amlen server.