-
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
/cluster API only lists self #950
Comments
This issue is with Kong 0.6.1 |
Problem solved. Err, well, at least the cause is found. I am working on running Kong using an external supervisor for #928, and found that because of #934, Kong's serf Closing as this an issue in my fork |
@mars do also the Cassandra errors disappear? |
Howdy @thefosk ! I just tried adding a conditional autojoin to This solved that the But those Cassandra errors are still appearing. |
@mars so, we really really want everybody to use auto-join, but there is a hidden configuration property that you can use to disable auto-join. It was intended for extreme debug/use-cases, and if a feature it's not documented it doesn't exist anyways :) cluster:
auto-join: false Regarding the Cassandra errors, it fails when executing this request: local nodes, err = dao.nodes:find_by_keys({name = node_name}) maybe @thibaultcha can give more insights on the error? |
With my auto-join in Yes, that failing query is mysterious to me, because the "error" message is a contact point, not an error description! |
@mars @thefosk I just recently tried Kong and auto-join fails for me also, is your fix coming to Kong or would you document the feature? Overall I am very happy about the documentation of Admin API, and everything. We have frontend for another API proxy and we have plans to support also Kong on the frontend in the future https://github.com/apinf/api-umbrella-dashboard and allow users to select which API proxy they would like to use. |
Also how auto-join basically should work, how Kong finds the nodes? I traced files https://github.com/Mashape/kong/blob/master/kong/cli/services/serf.lua#L98 and https://github.com/Mashape/kong/blob/master/kong/dao/cassandra/factory.lua#L45 I am usually diving source-first to the applications, so just found also documentation about clustering here: https://getkong.org/docs/0.7.x/clustering/ Trying to figure out more other day.. |
By default Kong will advertise into the datastore the first non-loopback IPv4 address. The other nodes, that point to the same datastore, will then try to join the other nodes using their advertised address. If auto-join doesn't work, it's usually for two reasons:
|
I have a two node Kong cluster, which for queries to the
/cluster
Admin API only returns a single member, the one servicing the API request.Other than this error, Kong appears to be functioning correctly, able to start-up, connect to Cassandra via SSL, and service both proxy & admin requests.
Here's what the logs look like during one of these
/cluster
Admin API requests:I've verified that the serf agents are reachable, and can be manually joined together:
…once I manually join them, the
/cluster
Admin API responds with the those three members, although the log output looks the same.Those
Host at x.x.x.x required authentication
&Cassandra error
logs lines all seem suspect.I am at a loss for finding a cause. Any ideas what might be going wrong?
The text was updated successfully, but these errors were encountered: