-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: use StatefulSet to manage meta Pods #312
Conversation
Signed-off-by: arkbriar <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #312 +/- ##
==========================================
- Coverage 76.46% 75.61% -0.85%
==========================================
Files 52 52
Lines 5022 5028 +6
==========================================
- Hits 3840 3802 -38
- Misses 1115 1160 +45
+ Partials 67 66 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM!
Thank you very much!
But we may need to add -endpoint=$(POD_NAME)
to argsForMeta
after the PR risingwavelabs/risingwave#7179 merged
Let's update the operator, then. |
PodManagementPolicy: appsv1.ParallelPodManagement, | ||
PersistentVolumeClaimRetentionPolicy: &kruiseappsv1beta1.StatefulSetPersistentVolumeClaimRetentionPolicy{ | ||
WhenDeleted: kruiseappsv1beta1.DeletePersistentVolumeClaimRetentionPolicyType, | ||
WhenScaled: kruiseappsv1beta1.DeletePersistentVolumeClaimRetentionPolicyType, |
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.
What is the consequence of this? Will deleting the PVC Retention Policy Type also trigger a deletion of the PV? If so, do we want that? Does this mean that all pods loose their data if we scale the stateful set?
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.
Nope, it means
- when deleting the
StatefulSet
, all PVCs from the PVC template will be deleted - when scaling down the Pod of the
StatefulSet
, the corresponding PVC will also be deleted (and then the cloud controller should delete the PV as well)
You can check the details here.
For meta nodes, AFAIK, we won't have PVCs. Even if we have, that's for cache purposes and could be safely deleted.
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.
LGTM
Since the test coverage drops, the mergify won't merge it. Will merge it manually. The improvement of the test coverage is planned in #313. |
Signed-off-by: arkbriar [email protected]
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Please explain IN DETAIL what the changes are in this PR and why they are needed:
StatefulSet
instead ofDeployment
to manage the meta Pods. For reasons for this change, please refer to feat: start meta node with statefulset #311.Checklist
Refer to a related PR or issue link (optional)
close #311
relates to #313