-
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
Cassandra "set_keyspace" fails #170
Comments
Yes it does need to because we are starting a new socket on every operation. |
I don't exactly know the internals, but I think it should use the nginx connection pool without restarting a new connection every time. Are we using http://wiki.nginx.org/HttpLuaModule#tcpsock:connect and http://wiki.nginx.org/HttpLuaModule#tcpsock:setkeepalive ? |
Yeah |
This can be mitigated by having a larger connection pool (set to And by decreasing the keepalive timeout to |
DAO sockets now take advantage of the connection pool and if they are coming from it (meaning they've been used before), they don't set their keyspace anymore.
fix: reused DAO sockets don't set the keyspace. fix #170
DAO sockets now take advantage of the connection pool and if they are coming from it (meaning they've been used before), they don't set their keyspace anymore.
fix: reused DAO sockets don't set the keyspace. fix Kong#170
Under load, Kong returns a bunch occurrences of the following exception:
Does it need to try to set the keyspace every time? Can the operation be optimized?
The text was updated successfully, but these errors were encountered: