kubernetes / community

Kubernetes community content
Apache License 2.0
11.91k stars 5.16k forks source link

Query regarding synchronization of data inside volumes in stateful sets #7997

Open rohan-97 opened 1 month ago

rohan-97 commented 1 month ago

Describe the issue

Hello,

Being new to Kubernetes, I have a basic doubt regarding volume synchronization in statefulset.

I am working on a stateful application and trying to scale it up with multiple replicas, I stumbled upon stateful set and was considering whether I can use it to implement my stateful application.

The application requires pods to be replicated and storage volume of all the replicated pods should be in sync and I was wondering if I can use statefulset for the same.

I went through documentation of stateful set but didn't found any block of document mentioning that kubernetes/statefulset synchronizes persistent volumes among multiple replicas of stateful set.

I need to confirm if I use stateful set to implement my stateful application then will kubernetes synchronize all the persistent volumes of all the pods or I need to implement some mechanism to manually synchronize data among the pods (e,g distributed file storage)

Thanks for the help in advance.

rohan-97 commented 1 month ago

/sig scalability

rohan-97 commented 1 month ago

/sig storage

mrbobbytables commented 1 month ago

You're best bet would be to reach out on the sig-storage mailing list or slack channel. This repo is sort of meta for self-management of the k8s community and not meant to route questions^^;;

rohan-97 commented 1 month ago

Hi @mrbobbytables ,

Thanks for the response, I'll add my query over there. :)