How the replication should work in API gateway clustered environments?

book

Article ID: 106797

calendar_today

Updated On:

Products

CA Rapid App Security CA API Gateway

Issue/Introduction

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.

 

Environment

ENV: Gateway 9.x

Resolution

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