housepower / clickhouse_sinker

Easily load data from kafka to ClickHouse
https://housepower.github.io/clickhouse_sinker
Apache License 2.0
515 stars 118 forks source link

How to detect whether the program is running normally? #101

Closed fzyzcjy closed 3 years ago

fzyzcjy commented 3 years ago

Hi I need to detect whether the sinker program is running correctly when using Kubernetes. We often use readinessProbe & livenessProbe, by specifying a url, and if fetching that url returns 200, then the program is running. I wonder whether there is something similar here? Thanks!

sundy-li commented 3 years ago

Yes.

https://github.com/housepower/clickhouse_sinker/blob/f13d12091c8cce976279d9fc113fc03a6572d364/cmd/clickhouse_sinker/main.go#L210-L212

fzyzcjy commented 3 years ago

Thanks!