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。

你可能感兴趣的:(Sphinx 启动后有两个进程?怎么回事?)