-
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
fix(core) make sure that cassandra handles cluster event consistency #5032
Conversation
…from the configuration file.
…from the configuration file.
Hello, Thank you for proposing the patch. The decision to not use the user-specified Cassandra consistency in the cluster events module is a deliberate one. Putting aside the fact that the Cassandra consistency settings need a lot more granularity than today's configuration properties offer (cc @bungle, with whom we are working on this), the cluster events module deserves its own consistency settings. In order to avoid over-configuration and, most of all, misconfiguration from users unfamiliar with Cassandra, the consistency settings were hard-coded to the most appropriate default: a datacenter-aware, high availability consistency setting. Given the chattiness of the cluster events insertion and polling, we believe the value is appropriate, and we decided to overcome eventual consistency scenarios by introducing the As such, I don't think that we should merge such a patch. For now, you can configure |
Thank you for your reply @thibaultcha , I have two questions I would like to ask:
|
By using
With If you are running a large C*-backed production cluster, we'd be interested in hearing your feedback if you chose to run your cluster events queries with a higher consistency setting. |
Thank you for your reply. @thibaultcha If the loss of the event cannot be avoided, what should be done when the event is lost? |
@scaat The |
Thank you for your reply. @thibaultcha In addition to manually using the /cache API, can I directly set db_cache_ttl to automatically clean up the cache? In short, is the effect of using /cache API the same as setting db_cache_ttl? |
Yes, this is also the use-case behing |
Hi, since the conversation seems to have ended and we decided not to merge this PR, I'm going to close it down. If anyone feels the need to reopen, please do so. |
Summary
The default is local_one, which does not match the strong consistency of cassandra, which may result in inaccurate data.
This PR takes the consistent configuration from the configuration of kong to ensure that it meets the user's expectations.