4

8G 云服务器上启了个 clickhouse,它总会因为某些 SQL 挂掉,现在想监控它,在它挂掉...

 1 year ago
source link: https://www.v2ex.com/t/885163
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

8G 云服务器上启了个 clickhouse,它总会因为某些 SQL 挂掉,现在想监控它,在它挂掉时能自己启动。我对 clickhouse🐔毛不懂,时间有限,想了 1 个简单方案和 1 个复杂,求帮忙看看。。。

  v2exblog · 5 小时 50 分钟前 · 1150 次点击

简单方案: 写个后台脚本,定时监测 clickhouse 进程是否寄了,寄了就启动,治标不治本,实现起来快

复杂方案: 根据配置调优,或者扩大内存。收集最近导致服务挂掉的 SQL ,研究一下根本原因,这个方案可能花的时间会很多

另外请教,你们的 clickhouse 是怎么运维的...

第 1 条附言  ·  2 小时 23 分钟前

谢谢各位大佬!打算用 docker 去弄了,还是 docker 省心

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK