How to configure the replication correctly in node.properties for clustered API gateway's.
Setting the right values for node.db.config.main.host and node.db.config.failover.host is confusing.
ENV: Gateway 9.x
This is how the replication/failover should be configured in API gateway clustered environments.
1. Primary Node (/opt/SecureSpan/Gateway/node/default/etc/conf/node.properties)
- points node.db.config.main.host to itself (localhost) for the main.host
- points node.db.config.failover.host to the Secondary node for failover host
2. Secondary Node (/opt/SecureSpan/Gateway/node/default/etc/conf/node.properties)
- points node.db.config.main.host to the Primary node for main.host
- points node.db.config.failover.host to itself (localhost) for failover.host
3. other subsequent Nodes ( (/opt/SecureSpan/Gateway/node/default/etc/conf/node.properties)
- points node.db.config.main.host to the Primary node for main.host
- points node.db.config.failover.host to secondary node for failover.host