-
Notifications
You must be signed in to change notification settings - Fork 616
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
Shard awareness extension for Scylla patchset 2 #1211
base: trunk
Are you sure you want to change the base?
Commits on Mar 26, 2019
-
conn: introduced supported field containing payload of SUPPORTED frame
Co-authored-by: Henrik Johansson <henrik@scylladb.com> Co-authored-by: Michał Matczuk <michal@scylladb.com>
Configuration menu - View commit details
-
Copy full SHA for afa7eab - Browse repository at this point
Copy the full SHA afa7eabView commit details -
SelectedHost: added Token function
This allows tokenAwareHostPolicy return token from ExecutableQuery. Co-authored-by: Henrik Johansson <henrik@scylladb.com> Co-authored-by: Michał Matczuk <michal@scylladb.com>
Configuration menu - View commit details
-
Copy full SHA for 5963c95 - Browse repository at this point
Copy the full SHA 5963c95View commit details -
hostConnPool: introduced ConnPicker interface to abstract pool storage
The hostConnPool logic around conns slice is moved to defaultConnPicker. Co-authored-by: Henrik Johansson <henrik@scylladb.com> Co-authored-by: Michał Matczuk <michal@scylladb.com>
Configuration menu - View commit details
-
Copy full SHA for 10957f9 - Browse repository at this point
Copy the full SHA 10957f9View commit details -
scylla: dedicated token aware ConnPicker
This is an extension to tokenAwareHostPolicy supported by the Scylla 2.3 and onwards. It allows driver to select a connection to shard on a host based on the token. The protocol extension spec is available at [1]. [1] https://github.com/scylladb/scylla/blob/master/docs/protocol-extensions.md Co-authored-by: Henrik Johansson <henrik@scylladb.com> Co-authored-by: Michał Matczuk <michal@scylladb.com>
Configuration menu - View commit details
-
Copy full SHA for 51460b5 - Browse repository at this point
Copy the full SHA 51460b5View commit details -
scylla: lazily close excess connections.
A list of excess connections is maintained to allow for lazy removal of. excess connections. Keeping excess connections open helps reaching equilibrium faster since the likelihood of hitting the same shard decreases with the number of connections to the shard. The excess connections list is currently capped to 10 times the number of shards. This magic number has no backing statistics but sounds reasonable.
Henrik Johansson committedMar 26, 2019 Configuration menu - View commit details
-
Copy full SHA for b794c9f - Browse repository at this point
Copy the full SHA b794c9fView commit details -
scylla: give out random connections before pool equilibrium
When the pool is not yet fully materialized we give the caller a random connection to allow the session to start working.
Henrik Johansson committedMar 26, 2019 Configuration menu - View commit details
-
Copy full SHA for f1af639 - Browse repository at this point
Copy the full SHA f1af639View commit details -
scylla: ensure we use the correct token to determine shard
The driver silently replaced the current token with the closest one from the token ring that it could find. This worked well enough to route the request to the correct host but to pick the right shard we need the actual token for the qiven query.
Henrik Johansson committedMar 26, 2019 Configuration menu - View commit details
-
Copy full SHA for 1ad3b47 - Browse repository at this point
Copy the full SHA 1ad3b47View commit details