Skip to content
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

Provide a way to configure which keyspaces need replica set precomputation #671

Open
havaker opened this issue Mar 22, 2023 · 0 comments · May be fixed by #831
Open

Provide a way to configure which keyspaces need replica set precomputation #671

havaker opened this issue Mar 22, 2023 · 0 comments · May be fixed by #831
Labels
area/load-balancing good first issue Good for newcomers performance Improves performance of existing features
Milestone

Comments

@havaker
Copy link
Contributor

havaker commented Mar 22, 2023

With the merge of #612, a new module called scylla::transport::locator was added to the scylla-rust-driver. This module offers a means to compute replica sets for a given strategy, token pair, which is commonly used in load balancing. To speed up these computations, replica set precomputation was included as a part of #612. Unfortunately, precomputing replica sets can be a bit costly in terms of memory and compute resources.

Currently, replica set precomputation is enabled by default for all keyspaces. While this can greatly improve the speed of computing replica sets, it may be unnecessary to use memory and compute resources for precomputation for keyspaces that are not in use by the driver.

Adding an option to configure replica set precomputation for specific keyspaces would solve this problem. By default, precomputation could be enabled for all keyspaces to provide fast access to replica sets. Users could selectively disable it for specific keyspaces (or enable only for specific ones) to better adjust the driver's resource consumption to their use cases.

@piodul piodul added area/load-balancing performance Improves performance of existing features labels Mar 23, 2023
@piodul piodul modified the milestones: 0.8.1, 1.1.0 Mar 24, 2023
@wprzytula wprzytula added the good first issue Good for newcomers label Aug 24, 2023
@Lorak-mmk Lorak-mmk self-assigned this Nov 15, 2023
@Lorak-mmk Lorak-mmk removed their assignment Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/load-balancing good first issue Good for newcomers performance Improves performance of existing features
Projects
None yet
4 participants