Skip to content

Kong doesn't keep track of changing Cassandra cluster nodes. #121

@angrosz

Description

@angrosz

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:

  1. One or two nodes of the Cassandra cluster are set in the Kong configuration.
  2. At the startup Kong gets complete topology, i.e. addresses of all nodes, from Cassandra.
  3. 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:
  4. Cassandra node is down.
  5. A new node is stared.
  6. A node is re-started (IP changes).
  7. Scaling down the Cassandra cluster (number of nodes decreased - some nodes are down).
  8. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions