StatefulSet with podManagementPolicy: Parallel
should create pods in parallel
#117071
Labels
kind/bug
Categorizes issue or PR as related to a bug.
sig/apps
Categorizes an issue or PR as relevant to SIG Apps.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What would you like to be added?
When
podManagementPolicy: Parallel
is set, StatefulSetController should issue create requests for replicas in batches (similar to how other controllers work, e.g. ReplicaSetController) when creating pods for the first time and scaling up.Why is this needed?
Currently even with
Parallel
podManagementPolicy StatefulSet the replicas are still created sequentially, even though they can start to run in any order.This severely limits pod throughput when working with large StatefulSets (~thousands of replicas). For example, 10 StatefulSets with 5k pods each achieve a total of ~6 pods/s, while 1k StatefulSets with 50 pods each allows for creating ~120 pods/s.
Parallel
policy suggests the pods can be created sequentially (https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/stateful-set-v1/#StatefulSetSpec):Relevant code (
Parallel
policy controls the value ofmonotonic
): https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/statefulset/stateful_set_control.go#L424)The text was updated successfully, but these errors were encountered: