Provide a way to configure which keyspaces need replica set precomputation #671
Labels
area/load-balancing
good first issue
Good for newcomers
performance
Improves performance of existing features
Milestone
With the merge of #612, a new module called
scylla::transport::locator
was added to thescylla-rust-driver
. This module offers a means to compute replica sets for a givenstrategy, 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.
The text was updated successfully, but these errors were encountered: