Hello
Is there a way to get IdleTime for a slave (using deadlinecommand or by other means) ?
thanks
Hello
Is there a way to get IdleTime for a slave (using deadlinecommand or by other means) ?
thanks
Are you looking for how long an idle slave has been in the Idle state, or are you looking for overall idle time since the slave was launched? I think there is a way to get the former, but not the latter.
Cheers,
Hello
I want to know “for how long an idle slave has been in the Idle state”
thanks
If you use “deadlinecommand -getslaves”, it will print out a bunch of information about each slave:
GetSlaves Displays information for all the slave names
[Use Ini Display] true/false (optional, default is false)
SlaveStatus will tell you which state the slave is in, and StateDateTime will tell you when the slave first entered that state. You can use that info to figure out if a slave is idle, and how long it’s been idle for.
Cheers,