-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Use the operator's credentials to connect to the ClickHouse instance and run health checks:
- Access point is available (use chi level service)
- Distributed query check:
SELECT count() FROM cluster('all-sharded', cluster('all-sharded', system.one)) - Zookeeper check -- run only if zookeeper is a part of CHI spec.configuration:
SELECT count() FROMsystem
.zookeeper
WHEREpath
= '/' - No readonly replicas:
SELECT max(value
) FROM cluster('{cluster}',system
.metrics
) WHEREmetric
= 'ReadonlyReplica' - No delayed inserts:
SELECTvalue
FROMsystem
.metrics
WHEREmetric
= 'DelayedInserts' - Healthy schema: MaxPartCountForPartition: >150 yellow, >300 red:
select value from system.asynchronous_metrics where metric='MaxPartCountForPartition'
Provide some kind of warning if the health checks are failing.
Metadata
Metadata
Assignees
Labels
No labels