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

Allow to change the default provider to replicated #2713

Merged

Conversation

tillrohrmann
Copy link
Contributor

This commit allows users to change the default log provider to replicated even if the
cluster has been fully provisioned. This allows users to migrate from a single node
deployment with a local loglet to a replicated loglet and then a multi node deployment.
Additionally, this commit enables the LogsController to react to default provider changes.
If the new default provider is the replicated loglet, then the logs controller will reconfigure
all logs.

Copy link
Contributor

@AhmedSoliman AhmedSoliman left a comment

Choose a reason for hiding this comment

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

❤️

@@ -617,8 +616,8 @@ async fn sync_cluster_controller_metadata() -> anyhow::Result<()> {
enum ClusterConfigurationUpdateError {
#[error("Unchanged")]
Unchanged,
#[error("Changing default provider kind is not supported")]
ChangingDefaultProviderNotSupported,
#[error("Changing default provider kind to {0} is not supported. Choose the replicated loglet instead")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#[error("Changing default provider kind to {0} is not supported. Choose the replicated loglet instead")]
#[error("Changing default provider kind to {0} is not supported. Choose the 'replicated' instead")]

This commit allows users to change the default log provider to replicated even if the
cluster has been fully provisioned. This allows users to migrate from a single node
deployment with a local loglet to a replicated loglet and then a multi node deployment.
Additionally, this commit enables the LogsController to react to default provider changes.
If the new default provider is the replicated loglet, then the logs controller will reconfigure
all logs.
@tillrohrmann tillrohrmann force-pushed the enable-migration-from-local-loglet branch from e21b592 to a47881e Compare February 13, 2025 11:56
@tillrohrmann tillrohrmann merged commit a47881e into restatedev:main Feb 13, 2025
5 checks passed
@tillrohrmann tillrohrmann deleted the enable-migration-from-local-loglet branch February 13, 2025 11:57
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.

2 participants