-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Hi,
I'm working with Kong 0.13.1 that uses lua-cassandra 1.2.3 and OpenResty 1.11.2.5. Kong talks to Cassandra 3.11.2. My problem is that Kong doesn't keep track of changing Cassandra cluster nodes.
Details are following:
- One or two nodes of the Cassandra cluster are set in the Kong configuration.
- At the startup Kong gets complete topology, i.e. addresses of all nodes, from Cassandra.
- Once Kong is done with its initialization procedure it doesn't get information of changing Cassandra nodes. The possible changes are: some nodes are removed from the cluster, some added.
a. If a node is added, then Kong will never know that and will never try to connect to the new node.
b. If a node is removed, then Kong will try to connect to it infinitely. The number of nodes "visible" to Kong will be reduced, what in consequence will lead to performance degradation.
c. If restart of node causes change of the IP then the result is as one node is removed and another added.
I have to cover the following scenarios: - Cassandra node is down.
- A new node is stared.
- A node is re-started (IP changes).
- Scaling down the Cassandra cluster (number of nodes decreased - some nodes are down).
- Scaling up the Cassandra cluster (number of nodes increased - new nodes started).
My question is: do you plan to enhance lua-cassandra driver to keep track of Cassandra cluster nodes changes (as I described above)?
Best Regards
mbugeia, suankan and qiaokeke
Metadata
Metadata
Assignees
Labels
No labels