helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[BUG] [OpenSearch-2.20.0] [ Scaling Challenges With Statefulsets ]

Open 1d9akash opened this issue 8 months ago • 1 comments

Describe the bug

When deploying OpenSearch using a Helm chart with separate nodeGroup configurations for "master" and "data" roles (each with 2 replicas), the deployment process requires manual creation of Persistent Volumes (PVs) to match Persistent Volume Claims (PVCs) generated by the Helm chart. This setup uses Amazon EFS as the storage backend, with a pre-existing StorageClass in the cluster. The manual step of creating PVs with specific labels to ensure proper PVC binding for the stateful sets (os-master-0, os-master-1, os-data-0, os-data-1) introduces complexity, especially when scaling the deployment up or down. I am seeking a solution to simplify the scaling process, either by allowing all replicas to share a single volume or by automating PV and PVC creation and binding during scaling operations.

To Reproduce

Steps to reproduce the behavior are not applicable as the issue relates to deployment and scaling infrastructure setup.

Expected behavior

The expected solution would automate the volume management process, eliminating the need for manual PV creation when scaling the OpenSearch deployment. Ideally, scaling up or down would automatically handle PV and PVC provisioning and binding, simplifying the management of stateful sets in Kubernetes.

Chart Name

OpenSearch Helm Chart Version: 20.04

Host/Environment

  • Helm Version: 3.13
  • Kubernetes Version: 1.29

Additional context

The current setup uses Amazon EFS as the persistent storage solution, with a StorageClass already defined in the Kubernetes cluster. The manual process of creating and labeling PVs to match PVCs is hectic, especially for dynamic scaling scenarios. Any guidance on automating this process or configuring the deployment to use shared volumes (if feasible) would be greatly appreciated.

1d9akash avatar Jun 12 '24 09:06 1d9akash