-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi,
- I'm using constructr inside nomad Tasks running Lagom inside a docker image.
- I might have multiple Tasks on one node.
- I have one consul agent per node.
- I'm currently not using the
agent-nameconfiguration but my constructr.coordination.{host/port} points to the local consul agent, So I hope it's added automatically.
My issue is that when running nomad stop, the sessions associated with each tasks are not destroyed and I must wait for the ttl to expires.
In consul documentation, it's indicated that a session will be invalidated:
- Node is deregistered
- Any of the health checks are deregistered
- Any of the health checks go to the critical state
- Session is explicitly destroyed
- TTL expires, if applicable
Node deregistering doesn't solve my issue since the node is still running after the nomad stop, we can't add healthcheck in the conf and session is not destroyed on clean shutdown.
Metadata
Metadata
Assignees
Labels
No labels