henchman icon indicating copy to clipboard operation
henchman copied to clipboard

Henchman should timeout if the remote machine didn't respond for long time.

Open baskaran-md opened this issue 10 years ago • 9 comments

One of the instance in inventory was bad such that its up but responding very slowly for ssh and other remote requests.. In this case henchman was waiting indefinitely for the command to complete. It has to detect those bad instances and timeout accordingly.

baskaran-md avatar Nov 13 '15 15:11 baskaran-md

How about setting standard time out period for each task. And modules can override that time delay

jlin21 avatar Nov 13 '15 23:11 jlin21

Modules shouldn't do it. Let it be at a task level if we need such a timeout.

sudharsh avatar Nov 14 '15 21:11 sudharsh

There would be a timeout field for each task then? Should tasks by default have a standard timeout value?

jlin21 avatar Nov 14 '15 21:11 jlin21

yeah, as defined by the transport. It's transport's responsibility

sudharsh avatar Nov 14 '15 21:11 sudharsh

If a task times out. Should it error out or just mark that state as 'skipped' or 'unreachable'

jlin21 avatar Nov 24 '15 00:11 jlin21

Timeout should be treated as unreachable. More I think of it, more I feel we should standardise on the states On 23-Nov-2015 4:04 pm, "jlin21" [email protected] wrote:

If a task times out. Should it error out or just mark that state as 'skipped' or 'unreachable'

— Reply to this email directly or view it on GitHub https://github.com/apigee/henchman/issues/82#issuecomment-159109370.

sudharsh avatar Nov 24 '15 00:11 sudharsh

Yeah we have a few redudant states such as ok, changed, and failure, error.

jlin21 avatar Nov 24 '15 21:11 jlin21

Actually we should probably have a state named timeout since unreachable means henchman cannot even reach the remote system

jlin21 avatar Nov 24 '15 21:11 jlin21

https://github.com/golang/go/wiki/Timeouts

jlin21 avatar Feb 07 '16 07:02 jlin21