High Availability Component
The component acts as a Zookeeper Client that is part of each MDM node. It requires a Zookeeper Server to run. For an overview of Zookeeper, Zookeeper Overview.
The component actively communicates with Zookeeper to monitor the state of other MDM nodes and switches MDM between the RW and RO mode when necessary.
Component Configuration
<component class="com.ataccama.nme.ha.HighAvailabilityComponent">
<serverName>mdc1</serverName>
<serverHostname>localhost</serverHostname>
<zookeeperPath>/ataccama/MDM_ha_default</zookeeperPath>
<zookeeperHostname>localhost:2181</zookeeperHostname>
<databaseLogger>db_logger</databaseLogger>
<consoleListenerName>ha-console</consoleListenerName>
<revokeLeadershipOnDisconnectTimeout>15000</revokeLeadershipOnDisconnectTimeout>
<maxActiveToPassiveSwitchingTime>15000</maxActiveToPassiveSwitchingTime>
</component>
Parameter Name | Required | Description | ||
---|---|---|---|---|
serverName |
Yes |
Name of this MDM shown in the Zookeeper cluster status.
|
||
serverHostname |
Yes |
Hostname by which other MDMs can reach this instance. |
||
zookeeperPath |
No |
Path on the zookeeper file system.
Default is |
||
zookeeperHostname |
Yes |
Zookeeper cluster hostname.
Multiple hostnames can be separated by a comma: |
||
databaseLogger |
No |
|
||
consoleListenerName |
Name of the HTTP Dispatcher listener on which the HA Admin Console will be available. See example of MDM High Availability Configuration. |
|||
revokeLeadershipOnDisconnectTimeout |
Yes |
When a connection failure occurs, this specifies how long Zookeeper waits to revoke leadership from the disconnected client.
If the disconnected node reconnects during the timeout, it maintains its leadership.
If the disconnected node fails to reconnect, Zookeeper selects a new leader and the disconnected node starts switching to the RO mode.
Basically, this is session timeout and connection timeout in terms of Zookeeper documentation.
Default:
|
||
maxActiveToPassiveSwitchingTime |
Yes |
The maximum amount of time it might take for an RW node to switch to the RO mode (for whatever reason).
When an RW node cannot switch to the RO mode fast enough, it is killed.
A new leader (and soon-to-become RW node) waits this time + 3 s until it starts switching to the RW mode.
This is a counter-measure against having two or more RW nodes in the cluster at the same time.
Default:
|
Was this page useful?