You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not what happen with version 18.11.28-19 : when my service is unhealthy, docker swarm kill the container and restart another one. But the listener don't send any notification.
Answering for @sguilly: when one of our container exits (normal operation or killed by an error) and is restarted by docker swarm, the listener doesn't "see" the new container. The restart is set in docker-compose:
We have multiple nodes in our swarm. Monitor is always deployed on a node with docker 18.06.1-ce (this version is on the majority of the nodes), but some are on docker 18.03.1-ce and one is on docker 18.09.0.
Activity
thomasjpfan commentedon Dec 22, 2018
When a service becomes healthy, DFSL will send a notification when it is to become healthy later.
nlevee commentedon Jan 2, 2019
This is not what happen with version 18.11.28-19 : when my service is unhealthy, docker swarm kill the container and restart another one. But the listener don't send any notification.
Do you need more information ?
thomasjpfan commentedon Jan 2, 2019
Can you provide information about how your service is set up?
nlevee commentedon Jan 2, 2019
my services are set up like this :
thomasjpfan commentedon Jan 3, 2019
As a debugging option, can you listen to docker events by running:
docker events -f type=service
and see what events firing when:I didn't ask before, does your service become healthy at some point?
nlevee commentedon Jan 3, 2019
The container is killed by docker and a new one is restarted after that, So the service become healthy when the new container is started.
I try the debugging process and give you a feedback
nlevee commentedon Jan 3, 2019
So I try the command :
docker events -f type=service
sample of response :
I cannot make my service unhealthy right know, but I tried to kill a container in a service, nothing is fired up in service events. Is that normal ?
thomasjpfan commentedon Jan 3, 2019
When you kill the container, does the service start up again? If I recall, this would not fire an service event.
sguilly commentedon Jan 29, 2019
We have the same issue when a container exit and when docker restart it.
thomasjpfan commentedon Jan 29, 2019
@sguilly May you provide more details about your issue?
Mualig commentedon Feb 4, 2019
Answering for @sguilly: when one of our container exits (normal operation or killed by an error) and is restarted by docker swarm, the listener doesn't "see" the new container. The restart is set in docker-compose:
If we restart docker-flow-swarm-listener service, the container shows up. But if we don't restart the service, Prometheus display the following error:
thomasjpfan commentedon Feb 5, 2019
@Mualig Which docker version are you using?
Mualig commentedon Feb 6, 2019
We have multiple nodes in our swarm. Monitor is always deployed on a node with docker 18.06.1-ce (this version is on the majority of the nodes), but some are on docker 18.03.1-ce and one is on docker 18.09.0.