-
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 freezes when starting with an invalid Cassandra host #168
Comments
My first guess is that the DNS resolution timeouts at 60 seconds which is too much. |
Is that under the scope of Kong? I'm not sure. What can we do about it? |
We can find ways to reduce the timeout if possible, and set it to 10 seconds instead of the default 60 seconds. |
Would adding a message: "[INFO] Connecting to Cassandra..." help the user understand that the CLI is actually doing stuff help? If the user sees this message hanging out, he or she is more likely to expect a timeout, and less confusion would occur as to what Kong is actually doing. Would we not be in the CLI we could use the openresty DNS resolver locally to see if Kong can resolve the host before actually trying to connect to it. I think it would still be an ugly and bloated solution though. Anyways it's not possible from the CLI. |
I do think that would help, along with lowering the default timeout. What got me was that it was like 30 seconds into it freezing I was just thinking this is broken. Even right above there is the Maybe we could add |
I actually wanted to say that there is no way to lower the default timeout for this. |
I guess the message will be even more vital then. |
Technically there is a way with threads. We should show the message anyways. |
#204 adds a message. Threads is part of the solutions I consider "bloated", overkill. About the |
[feature] add notice log for DB connection. #168
Are we closing this issue or do we still want to implement a DNS resolution timeout that overrides the system timeout? |
I would close this |
Can we put somewhere in the info message "60 second timeout"? It could still be confusing because it says |
I am not sure 60 sec is the default everywhere
|
The other options is using the |
I thought we couldn't change that?
|
I can use threads to do it (maybe), if we want to do it. Do we? |
We already added a message that it's connecting to Cassandra so if it does fail users will know why. Let's close for now and we can always revisit later if need be. |
[feature] add notice log for DB connection. Kong#168
) * chore(ci) [skip travis] move nightly releases to Jenkins * [skip travis] * [skip travis] split plugin tests out and login to docker when building the docker test image * [skip travis] try a different way of defining the KONG_VERSION env * [skip travis] skip the problematic builds * [skip travis] move the daily deploys out of travis.yml * [skip travis] wip debugging a sporadically failing test * fix(tests) adjust how we run the report mock server for a more reliable test * chore(ci) debug the environment variables available in jenkins [skip travis] * chore(ci) set the repository os name environment variable [skip travis] * test(reports) adjust how we check if the report server can run * chore(ci) adjust the jenkins setup [skip travis] * chore(wip) remove the integration tests to focus on getting the nightly releases to work * fix(ci) adjust how set set the bintray credentials [skip travis] * wip -- debugging daily releases to bintray [skip travis] * chore(ci) run only the xenial release [skip travis] * chore(ci) re-enable tests and other distribution releases * chore(ci) add the CI cron trigger chore(dependency) bump the kong-build-tools dependency (#168) chore(dependencies) adjust kong-build-tools dependency pin (#169) * chore(dependency) bump the kong-build-tools dependency * chore(ci) unpin the jenkins build from the kong-build-tools branch chore(nightly) build nightly arm release (#171) chore(ci) adjust cache settings for xenail nightly builds (#173)
) * chore(ci) [skip travis] move nightly releases to Jenkins * [skip travis] * [skip travis] split plugin tests out and login to docker when building the docker test image * [skip travis] try a different way of defining the KONG_VERSION env * [skip travis] skip the problematic builds * [skip travis] move the daily deploys out of travis.yml * [skip travis] wip debugging a sporadically failing test * fix(tests) adjust how we run the report mock server for a more reliable test * chore(ci) debug the environment variables available in jenkins [skip travis] * chore(ci) set the repository os name environment variable [skip travis] * test(reports) adjust how we check if the report server can run * chore(ci) adjust the jenkins setup [skip travis] * chore(wip) remove the integration tests to focus on getting the nightly releases to work * fix(ci) adjust how set set the bintray credentials [skip travis] * wip -- debugging daily releases to bintray [skip travis] * chore(ci) run only the xenial release [skip travis] * chore(ci) re-enable tests and other distribution releases * chore(ci) add the CI cron trigger chore(dependency) bump the kong-build-tools dependency (#168) chore(dependencies) adjust kong-build-tools dependency pin (#169) * chore(dependency) bump the kong-build-tools dependency * chore(ci) unpin the jenkins build from the kong-build-tools branch chore(nightly) build nightly arm release (#171) chore(ci) adjust cache settings for xenail nightly builds (#173)
When starting Kong with an invalid Cassandra host I noticed it gets stuck.
The text was updated successfully, but these errors were encountered: