Skip to content

docs: scaling guide#222

Merged
GrigoryPervakov merged 6 commits into
ClickHouse:mainfrom
arekborucki:docs/scaling-guide
Jun 11, 2026
Merged

docs: scaling guide#222
GrigoryPervakov merged 6 commits into
ClickHouse:mainfrom
arekborucki:docs/scaling-guide

Conversation

@arekborucki

@arekborucki arekborucki commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Why

The docs explain how to configure a cluster but never how to resize one. Users had no reference for what happens when they change spec.replicas or spec.shards, how the operator keeps the schema in sync, which conditions report progress, or how Keeper changes quorum membership safely.

What

Adds a Scaling guide (docs/guides/scaling.mdx, registered in navigation.json) covering: scaling ClickHouse replicas and shards, automatic schema sync on scale via enableDatabaseSync (database replication on scale up, SYSTEM DROP DATABASE REPLICA cleanup on scale down), the status conditions to watch (ClusterSizeAligned, SchemaInSync, Ready), and quorum-safe one-member-at-a-time KeeperCluster scaling (ScaleAllowed)

@GrigoryPervakov GrigoryPervakov changed the title Docs/scaling guide docs: scaling guide Jun 10, 2026
Comment thread docs/guides/scaling.mdx Outdated

A StatefulSet has immutable fields (for example `serviceName`, `selector`, and `volumeClaimTemplates`). When a topology change would require mutating those fields on a shard's existing StatefulSet, the operator cannot update it in place, and that shard keeps its original shape while the newly created shards run the new one. This is tracked in [issue #191](https://github.com/ClickHouse/clickhouse-operator/issues/191).

If you hit this, delete the affected StatefulSet so the operator recreates it with the current spec:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a reproduced issue; it doesn't make sense to mention it in the docs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the section

@GrigoryPervakov GrigoryPervakov merged commit f5d7604 into ClickHouse:main Jun 11, 2026
21 checks passed
@mintlify

mintlify Bot commented Jun 11, 2026

Copy link
Copy Markdown

Docs PR opened: ClickHouse/mintlify-docs-dev#179

Synced upstream clickhouse-operator docs, adding monitoring and scaling guides plus updates to overview, configuration, introduction, OLM install, and API reference.

@arekborucki arekborucki deleted the docs/scaling-guide branch June 11, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants