Skip to content

Make ScyllaDB replication factor configurable #3788

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ndr-ds
Copy link
Contributor

@ndr-ds ndr-ds commented Apr 16, 2025

Motivation

We'll use replication factor of 1 in CI and locally, but probably will use 3 in deployed networks on GCP

Proposal

Add an option to support that

Test Plan

CI + deployed network locally

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Copy link
Contributor Author

ndr-ds commented Apr 16, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ndr-ds ndr-ds force-pushed the 04-14-make_scylladb_replication_factor_configurable branch from 6fd307a to 5e7a71d Compare April 16, 2025 22:42
@ndr-ds ndr-ds requested review from afck, ma2bd, MathieuDutSik and Twey April 16, 2025 23:47
@ndr-ds ndr-ds marked this pull request as ready for review April 16, 2025 23:47
@@ -1339,7 +1343,7 @@ impl ClientOptions {
let storage_config = self.storage_config()?;
debug!("Running command using storage configuration: {storage_config}");
let store_config = storage_config
.add_common_config(self.common_config())
.add_common_config(self.common_config(), self.storage_replication_factor)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it what the common config was about though?

Copy link
Contributor

@MathieuDutSik MathieuDutSik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First comment is that the addition of a storage-replication-factor is generally a good idea. I think that in operations, the ScyllaDb instance is not spun out in that way. But, it is a nice thing to have it available for tests.

Where I think this is more problematic is where should we put this setting.

As is apparent, this is not an internal setting of ScyllaDB. The ScyllaDB instance is already running, either in Docker or some other system. Therefore, the replication factor should be next to the uri and should be obtained when parsing the --storage entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants