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

Any reason the chart installs all parts as statefulsets

Open ibotty opened this issue 2 years ago • 2 comments

Is there any reason to run the components as statefulsets? taiga-front, taiga-gateway and taiga-protected can be deployed as regular Deployments I assume that the lifecycle guarantees of a statefulset are also not neccessary for taiga-back and taiga-events. Am I overlooking something?

ibotty avatar May 20 '22 13:05 ibotty

So StatefulSet is used to scale stateful workloads, or ones that require a PVC. Using the official docker-compose as source of truth, it appears taiga-front, taiga-events, and taiga-protected do NOT have volumes and thus should beDeployments, not StatefulSets.

maxirus avatar May 20 '22 16:05 maxirus

Deployments can also require a PVC. The difference is that a StatefulSet can get different PVC per replica. That's certainly not needed with taiga. Statefulsets have different characteristics of restart, etc., but I doubt that necessary here. I wonder which parts of taiga can be run concurrently, if state is only in the DB and on the file system. If so it should be possible to run many replicas of each component for HA.

ibotty avatar May 20 '22 18:05 ibotty