Skip to content

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

Open
@havaker

Description

@havaker

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions