Altinity / clickhouse-operator

Altinity Kubernetes Operator for ClickHouse creates, configures and manages ClickHouse clusters running on Kubernetes
https://altinity.com
Apache License 2.0
1.86k stars 455 forks source link

Pod Disruption Budget per shard configuration #1225

Open blafry opened 1 year ago

blafry commented 1 year ago

Hi there,

Currently, PDBs (Pod Disruption Budgets) are being created per cluster with a value of 1 for MAX UNAVAILABLE. This setup, especially with a large number of clusters and numerous shards, leads to prolonged reconciliation times.

One potential improvement could involve parallelizing and expediting this process by creating PDBs per shard within a cluster. In this scenario, each shard would have a 1of MAX UNAVAILABLE of replica.

Is it possible to configure the operator in such a manner?

UnamedRus commented 7 months ago

Probably https://github.com/Altinity/clickhouse-operator/pull/1124 cover this request