canal icon indicating copy to clipboard operation
canal copied to clipboard

k8s容器canal进程没了

Open laoeree opened this issue 1 year ago • 6 comments

Question

问题描述:在k8s中运行的canal:v1.1.7服务运行一段时间,容器中的canal进程就突然没了,外部日志没有任何报错,容器也是正常运行,看了好久才发现canal进程是主进程app.sh启动的,手动模拟杀掉canal进程也是没有日志输出。 image

疑惑: 1、canal进程没了为何容器还能正常运行,且没有日志输出? 2、如果是app.sh控制启动canal进程,为何没有监测服务进程是否存在?

laoeree avatar Jul 19 '24 03:07 laoeree

检查方法:执行命令检查

执行命令:ps -ef|grep canal|grep -v grep

showyouself avatar Jul 23 '24 01:07 showyouself

检查方法:执行命令检查

执行命令:ps -ef|grep canal|grep -v grep

认真的嘛 你有看我的截图,效果和你的命令有啥区别

laoeree avatar Jul 23 '24 01:07 laoeree

有解决办法吗,我的问题跟你的一模一样

xuerbujia avatar Aug 09 '24 00:08 xuerbujia

有解决办法吗,我的问题跟你的一模一样

没法解决,只能设置定时重启deployment了

laoeree avatar Aug 12 '24 05:08 laoeree

有解决办法吗,我的问题跟你的一模一样

没法解决,只能设置定时重启deployment了

我换用它的release直接单机部署了 暂时没出现这个问题

xuerbujia avatar Aug 12 '24 06:08 xuerbujia

检查下是主机否有oom killer的动作

agapple avatar Sep 11 '24 06:09 agapple

@laoeree 做个livenessprobe 监控下11112端口

dyrnq avatar Oct 24 '24 00:10 dyrnq

@laoeree做个livenessprobe 监控下11112端口

这个方法不错

laoeree avatar Nov 04 '24 05:11 laoeree