-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(rewrite) #15
feat(rewrite) #15
Conversation
- CQL specs for both protocol v1 and v2 - set, uuid, map types - few fixes
Default load balancing policy is RoundRoubin.
- constant and exponential policies
9943cad
to
96c7141
Compare
We simply serialize less values in the shm, as the library currently only uses unhealthy_at and reconnection_delay.
bbcaee8
to
adc1c8a
Compare
adc1c8a
to
9bc9c01
Compare
67dbaa9
to
ac4fc02
Compare
Thanks for pointing me towards this new repo. Regarding the new example https://github.com/thibaultCha/lua-cassandra/blob/feat/rewrite/README.md#usage, would it make sense to open a global session via init_by_lua rather than new local sessions for each location? |
No, that would be terrible for performance since all the workers would constantly fight for the same resources. ngx_lua is non blocking only if each request is being processed with respect to its isolated state (so if you're not doing blocking operations on top of it). Probably next week. It hasn't been tested in production but I think it is already usable. |
Allow to enable SSL without having to necessarily verify the server certificate.
cbab03b
to
b6fc8ea
Compare
Alright, I am satisfied enough with this to release 0.4.0 and include it in Kong. After some more production usage and a few missing features, this will be bumped to 1.0. |
This is a complete rewrite of the library, to the exception of the serializers. This rewrite was motivated by #11 and Kong/kong#660, and brings cluster awareness to the driver, along many other things inspired by the official Datastax drivers.
Summary
ngx.shared.DICT
API, providing cluster informations to all nginx workers at the same time.The purpose is now to have cluster informations retrieved in
init_by_lua
in ngx_lua, stored inngx.shared.DICT
, and then use short-lived, cheap "sessions" that leverage the cosocket API during other phases. See example in README.TODO
before releasing:
not priorities: