Open migalenkom opened 5 years ago
after adding, you have two processes with same pids (1567):
5ba80f973d1f9235ef940bc4
detector ...................... up (14:14, 7%, 64Mb, <1567>)
5bfc56a23d1f922e4a7a8046
detector ...................... up (14:14, 7%, 64Mb, <1567>)
so maybe you set the same pidfile for both processes
Checked again, but PID files are separate for each process. (e.g)
detector-5ba80f973d1f9235ef940bc4.pid
detector-5bfc56a23d1f922e4a7a8046.pid
are you use daemonize: true
?
Yes, I am using it.
looks like impossible, btw, you can see all what happens in eye log.
https://www.dropbox.com/s/nqmjh8vtlepoayb/screencast_00007.mp4?dl=0
2019-07-13 11:51:40.804166 W [24206:70315359510820] eye -- [recorder:5ba80f973d1f9235ef940bc4:live] check_alive: pid_file (/data/deployer/timeagent/tmp/pids/recorder/live-5ba80f973d1f9235ef940bc4.pid) changed by itself (<24221> => <24146>), reverting to <24221> (the pid_file is controlled by eye)
this line is ok, eye find that file was changed outside. try also restart eye.
Loading the config again starts a completely independent group of new processes while keeping the old processes alive -- but for some reason, the new processes show the same PIDs as the previous group, which is not correct.
The new processes when daemonized do not have same PIDs, something is going wrong internally with the monitoring threads.
I have eye process group running
Then I want to add process group and reload gonfig
It adds a new process group with the same PIDs, same start time, etc., then next check it detects that both processes are crashed and restarts both. After that restart process, PIDs are correct.
If you have more than two processes it restarts in a chain by groups of two