-
Notifications
You must be signed in to change notification settings - Fork 116
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
Can't resize PVC associated with Standalone instance #558
Comments
Hi, can you do a |
Hi, sure. Here it is:
Also, here's how default storage class looks like.
|
Just to clarify, I believe bug from operator's side is that it doesn't pick change, because if the change of volume size was picked, I could see an error with |
Hi @pogdin. Do you need any additional information? |
I am experiencing the same issue with a SearchHeadCluster where I adjusted the varVolumeStorageConfig => storageCapacity and updated the CR. The change gets picked up by the SearchHeadCluster but doesn't get propagated down to the StatefulSets and therefore no change is applied. Manually changing the StatefulSet is not allowed with an error of: I have to uninstall und reinstall the whole environment. |
Hi @vzabawski @BGrasnick , CR spec and operator: StatefulSet limitation:
There have been multiple attempts(kubernetes/enhancements#2842) from the open source community to allow the configuration of PVC storage size via the statefulset volumeClaimTemplate config but there has not been any progress here at the moment. Alternatives with PVCs: Conclusion: |
This limitation on updating the PVC size within a StatefulSet is a PITA, but there is a workaround. I did a blog post on two methods - one with downtime, and one without downtime: https://adamrushuk.github.io/increasing-the-volumeclaimtemplates-disk-size-in-a-statefulset-on-aks/ I imagine this could be orchestrated within the Splunk Operator, although I appreciate it may not be the easiest, esp across multiple cloud providers when it comes to the external disk resize operation. That being said, I know Azure has it's LiveResize feature in public preview. This worked very well during my testing. |
Hi @adamrushuk , thank you for sharing the blog post on resizing PVCs. While we have assessed a number of workaround solutions to resizing PVCs on multiple platforms there doesn't seem to be a one-stop solution which addresses all platforms. As mentioned here many managed K8s services like GKE still have their feature in beta where an orchestration from the operator might not work. Looking forward with standardization of the PVC expansion process with multiple file storage types a solution can be carved out by the operator. |
@BGrasnick We will keep an eye out for updates from cloud providers, K8s for dynamic PVC resizing and provide a solution via the operator at an appropriate time. For now closing the issue due to the reasons explained above. |
I've created a standalone instance with a var disk too small, so I decided to resize it, but wasn't able to do it.
How to reproduce:
Expected result: PVC size is changed to the new value.
Actual result: PVC size stays the same.
Seems like the operator doesn't track this change. After manual modification of the PVC, its size change was detected, but it failed to resize due to Azure limitations.
Additional issue, but not directly related to PVC resizing:
I've tried to scale down standalone instances, but it didn't worked, the number of instances stayed the same (even after 10 minutes) after running the following command:
At the same time, the number of replicas is set to 0 inside indexer-z2 object:
So, additionally it would be nice to be able to scale down to zero Splunk replicas, so no pods are running that use PVC.
Environment:
The text was updated successfully, but these errors were encountered: