管理员模式下的Kafka [英] Kafka in supervisor mode

查看:41
本文介绍了管理员模式下的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天全站免登陆