Sphinx 启动后有两个进程?怎么回事?

今天重启sphinx进程时发现我只做了一次启动,却发现两个进程。



查文档得知。
Threaded server watchdog. Optional, default is 1 (watchdog enabled). Introduced in version 2.0.1-beta.

A crashed query in threads multi-processing mode (workers = threads) can take down the entire server. With watchdog feature enabled, searchd additionally keeps a separate lightweight process that monitors the main server process, and automatically restarts the latter in case of abnormal termination. Watchdog is enabled by default.

如果在searchd 配置中配置 workes=threads,默认会启动watchdog。watchdog会启动一个轻量级的进程监控searched进程,当searched进程挂掉时会自动重启。

关闭watchdog 后


重启sphinx



这次只启动了一个进程。

为了保证系统的稳定运行,不建议关闭watchdog。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容