-
Notifications
You must be signed in to change notification settings - Fork 177
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
Document manual procedure of storage resizing (2nd take) #2243
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gdubicki The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @gdubicki. Thanks for your PR. I'm waiting for a scylladb member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
06ee2b3
to
a6d48ef
Compare
Sorry, it's not ready yet. I need to combine it with the new index. |
and expand the instructions with mention of Helm-managed clusters and a more detailed instructions for node replacement procedure. Fix some typos and make the values more consistent.
a6d48ef
to
a9e1edb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contirbution, I think it requires slightly more work to explain procedure better.
|
||
## Increasing the storage size | ||
|
||
1. Orphan delete ScyllaCluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's important to mention that existing scyllacluster spec needs to be saved somewhere and aligned to new storage requirements. Otherwise someone executing very first step of a procedure may loose the spec and find out later it's no longer available.
|
||
Due to limitations of the underlying StatefulSet, ScyllaClusters don't allow storage changes. The following procedure describes how to adjust the storage manually. | ||
|
||
Let's use the following pods and StatefulSet in the resize examples below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be generic enough to explain it needs to be done for every rack (StatefulSet) that requires changes.
@@ -0,0 +1,99 @@ | |||
# Resizing storage in ScyllaCluster | |||
|
|||
Due to limitations of the underlying StatefulSet, ScyllaClusters don't allow storage changes. The following procedure describes how to adjust the storage manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the requirements is that StorageClass used supports resising. It should be mentioned here and explained how to verify that.
``` | ||
The StatefulSet will be recreated by the Scylla Operator with the new storage size. | ||
|
||
5. (Only if PVC does not support volume expansion) You need to replace every Scylla node, one by one, following the procedure described in [replacing nodes](/resources/scyllaclusters/nodeoperations/replace-node). Start with the last node in the StatefulSet and move towards the first node. This will recreate each node and their PVCs with the new size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be separate procedure for those StorageClasses, not embedded in this one.
Description of your changes:
Based on #1053 by @Choraden, expanded to include both storage increase and decrease cases.
I have tested the decreasing case on ScyllaDB v6.1.2 and Scylla Operator v1.14.0.
Which issue is resolved by this Pull Request:
Resolves #825