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

Make restatectl cluster provision and cluster config set more flexible #2620

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

tillrohrmann
Copy link
Contributor

This commit makes the cluster provision and cluster config set command more flexible. It now allows to specify only a partial set of values and it will take the remaining values from the current cluster configuration/default values.

Additionally, this commit introduces the new type NodeSetSize to enforce the upper limit of 128 across the configuration and API calls.

This fixes #2604 and #2561.

@tillrohrmann
Copy link
Contributor Author

fyi @pcholakov regarding the restatectl work.

Copy link
Contributor

@muhamadazmy muhamadazmy left a comment

Choose a reason for hiding this comment

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

Thank you so much @tillrohrmann for PR. Looks great +1 for merging. I left few really minor comments.

I am wondering if BifrostProvider in cluster.proto should be dropped since you don't use it in provision call anymore and can be replaced with it's inner components also for ClusterConfiguration. But this can definitely be done in a separate PR.

crates/types/src/logs/metadata.rs Outdated Show resolved Hide resolved
crates/types/src/logs/metadata.rs Outdated Show resolved Hide resolved
crates/types/src/logs/metadata.rs Outdated Show resolved Hide resolved
crates/types/src/logs/metadata.rs Outdated Show resolved Hide resolved
@tillrohrmann
Copy link
Contributor Author

I'll check how easy it is to drop the BifrostProvider type. I do agree that this seems like an unnecessary type we can get rid of.

@tillrohrmann
Copy link
Contributor Author

Removing the BifrostProvider type is unfortunately not for free. Won't do it as part of this PR.

This commit makes the cluster provision and cluster config set command more
flexible. It now allows to specify only a partial set of values and it will
take the remaining values from the current cluster configuration/default
values.

Additionally, this commit introduces the new type NodeSetSize to enforce the
upper limit of 128 across the configuration and API calls.

This fixes restatedev#2604 and restatedev#2561.
@muhamadazmy
Copy link
Contributor

Removing the BifrostProvider type is unfortunately not for free. Won't do it as part of this PR.

No worries of course. I can do it tomorrow as a follow up :)

@tillrohrmann tillrohrmann merged commit 1e9888f into restatedev:main Feb 5, 2025
25 of 26 checks passed
@tillrohrmann tillrohrmann deleted the issues/2604 branch February 5, 2025 08:00
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.

Restatectl cluster provisions requires me to specify log-default-nodeset-size
2 participants