Ask questionsNon-leader task in taskgroup not being sent interrupt
Nomad v0.9.3 (c5e8b66c3789e4e7f9a83b4e188e9a937eea43ce)
Amazon Linux 2
Non-leader task in taskgroup receives no interrupt when Nomad decides an allocation should be stopped, say, from a count decrement.
The leader task, which is the task where all the services are registered to Consul, properly handles the shutdown_delay and kill_timeout, but the secondary task receives no interrupt until the leader task dies. Then it receives an interrupt because the leader task is dead.
This is a problem because the leader task is the sidecar proxy which is the source network for the secondary task, the app itself. Since it receives no interrupts, it is unable to perform graceful shutdown actions until it receives its interrupt, which is when the network is gone since it was attached to the leader task.
leader"network_mode": "container:<task_name>-${NOMAD_ALLOC_ID}" for the secondaryshutdown_delay and leader terminates, verify the secondary task detects leader is goneLeader Task/Proxy:

Secondary Task/App

I believe the expected behavior is every task in a taskgroup should receive an interrupt at the same time.
Answer
questions
jf
I am seeing this as well - with the latest Nomad version too (Nomad v0.12.4 (8efaee4ba5e9727ab323aaba2ac91c2d7b572d84)). This issue should not have been closed by the bot. Is anybody looking at this?
Related questions