Zenko icon indicating copy to clipboard operation
Zenko copied to clipboard

Stateful S3-data

Open ssalaues opened this issue 8 years ago • 4 comments

Stateful Set for S3-data chart

It seems like this chart is setup as a deployment. Is this what we want going forward? It seems like convention would require this to be a stateful set. Would the S3-data service function properly in a stateful set or is the current configuration the only way of achieving a stateful S3-data chart?

ssalaues avatar May 23 '18 20:05 ssalaues

Not necessarily.

The question is: how does the service behave?

If you turn it into a StatefulSet, then the PVC spec is part of this object, and the StatefulSet controller will create PVCs accordingly for every instance of the set. As such, when you 'scale up' the number of replicas, this will 'just work'. But maybe the service doesn't support this?

When instead you use a single PVC and a Deployment with a Pod using said PVC, then you can only have one instance, or multiple instances but running on the same node, hence sharing and exposing the same storage (assuming ReadWriteOnce PVCs).

When this Chart was created, I guess we didn't really know how s3-data behaves or is supposed to behave. I believe the intent was for there to be only one instance, because there's no dispatching going on upfront.

NicolasT avatar May 23 '18 22:05 NicolasT

Yeah I guess we would have to figure out how we would want it to behave vs how it currently behaves then make any appropriate changes to code and charts.

ssalaues avatar May 24 '18 22:05 ssalaues

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 12 '18 13:09 stale[bot]

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.

stale[bot] avatar Sep 19 '18 14:09 stale[bot]