Kafka在主管模式下 [英] Kafka in supervisor mode

查看:73
本文介绍了Kafka在主管模式下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在监督模式下运行kafka,以便在关机时可以自动启动.但是,所有运行kafka的示例都使用Shell脚本,并且supervisord无法记录要监视的PID.有人可以建议如何完成kafka的自动重启吗?

I'm trying to run kafka in supervision mode so that it can start automatically in case of a shutdown. But all the examples of running kafka use shell scripts and the supervisord is not able to note which PID to monitor. Can anyone suggesthow to accomplish auto restart of kafka?

推荐答案

如果您使用的是Unix或Linux计算机,那么/etc/inittab 会派上用场.或者,您可能想使用 daemontools .不过我对Windows一无所知.

If you are on a Unix or Linux machine, then this is when /etc/inittab comes in handy. Or you might want to use daemontools. I don't know about Windows though.

这篇关于Kafka在主管模式下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆