Closed qrof closed 8 years ago
@qrof As you can see from the timestamps of your logs, for each healthcheck tick, only one worker is doing the health check, although all the workers have the chance to win each time slot.
@qrof There is a shm lock there so it can only be one worker doing the job at each time tick.
Thanks a lot @agentzh and respect to you - thank you for all the hard work on such a great project!
你好,我了解到在do_check中使用shm lock防止多个工作进程同时发送请求。请问shm lock是否可以提前到创建timer阶段,这样就只有一个工作进程开启了健康检查
@qrof There is a shm lock there so it can only be one worker doing the job at each time tick.
Is using Privileged agent for this (start timer only in priv. agent) good practice? So health check would run in only one worker? To separate it's work from the regular workers which may occasionally get high loads.
@zhuizhuhaomeng
It looks like each worker is spawning hc.spawn_checker, is this by design?
Thanks!
Config:
Log: