We have configured a new API Gateway with the internal MySQL database , but we get the following error every 10 seconds:
Release : 10.1
Component :
The cluster_master table should have at least one entry which is created when the cluster is setup.
Resolution Steps:
1. Stop the Gateway service on all nodes that are part of the same Gateway cluster by running the following command at OS prompt
# service ssg stop
2. Once Gateway service is stopped on all nodes, open MySQL console on the Primary DB node
3. Execute the following SQL statements in the order shown below:
# delete from ssg.cluster_master;
# INSERT INTO ssg.cluster_master (nodeid, touched_time, version) VALUES (NULL, 0, 0);
Then confirm cluster_master table is now showing empty values by running :
# select * from ssg.cluster_master;
The output must look as below example:
4. The active replication should update the cluster_master table on the Secondary DB node as well. Hence open MySQL console on the secondary and confirm that is indeed the case by running:
# select * from ssg.cluster_master;
5. Restart Gateway service on all nodes, firstly Primary DB node, then Secondary DB node and finally the remaining two Gateway nodes.
6. Once Gateway nodes are started, check again the cluster_master table on both Primary and Secondary DB node by running below command:
# select * from ssg.cluster_master;
They should both show the exact nodeid value this time.