-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kong node is not registered in kong.nodes Cassandra table #1004
Comments
If Kong is unable to write the the nodes table, it this should be reflected in an error in |
Other than the following type of entry generated each time I start a Kong node, there isn't anything of note in the
This error is repeated in the logs with the number before |
A few questions:
To manually invoke the cluster join, ssh into one Kong node and run the following command: $ serf join 1.1.1.1:7946 where |
I'm running Cassandra 2.2.5. Port I just manually invoked the cluster join using the suggested command above and it produced the following output:
After running the command, I then went ahead and checked the members of the cluster, using the
One thing to note is that I'm starting Kong using
No idea if this might have something to do with it. |
@afajem, could you try to replicate this bug with 0.7.0 RC1? There was a bug in the previous 0.6.x versions, where Kong was instructing Serf to use the Version 0.7.x fixes this bug, and I am curious to see if it also fixes your problem. |
OK I'll give 0.7.0 RC1 a shot and check back with you shortly. Asking the obvious here, but I'm assuming Cassandra 2.2.5 should work as the install instructions state 2.2.x. Also any idea when 0.7.0 will be released? Just a very rough estimate would do, as we plan to go live at the end of next month. Thanks so much for your assistance thus far. |
In one or two weeks. Looking forward to seeing if 0.7.0 fixes it. |
Thanks for the release estimates. I was able to successfully upgrade to 0.7.0 RC1 without any issues. Unfortunately the nodes are still not talking to one another. The Cassandra I double checked my port rules through
I also updated the |
I think I may have an idea of what's happening here - what OS are you running? I want to give you a patched version and see if that fixes it. |
RHEL 7.2 Thanks! |
I will push 0.7.0 RC2 in a couple of hours. |
Perfect. I'll check it out later tonight. Thanks so much again for the prompt response. Cheers. |
🎉 🎊 Success! I upgraded to 0.7.0 RC2 and it worked the first time.
Cassandra
Thanks a million @thefosk for getting this issue resolved so quickly. It's really appreciated. Cheers. |
I have successfully created a two-node Cassandra cluster and data is being replicated between the nodes of the cluster. I have also created a Kong cluster containing two nodes. When I start each Kong node, it does indeed communicate with Cassandra and writes to the database and I have verified that the data written to Cassandra is replicated between the Cassandra nodes. Unfortunately, the Kong node do not communicate with each other; in essence they can't auto-join the cluster. Below is the console output of the startup:
The ports on which the nodes uses to communicate between each other have been opened and I have indeed verified that when both nodes are running I can access port 7946 from the neighboring node, as a Kong node is bound to this port.
What I found most peculiar is that even when a single node is running, Kong didn't write to the
kong.nodes
table. I would assume that if this table is not written to thekong.nodes
table, Serf doesn't know how to determine which nodes are available. Is there a reason why this is not working as expected or is my assumption of how this should work invalid?The text was updated successfully, but these errors were encountered: