Open nlevee opened 5 years ago
How is udm_webapp_webapp-admin-http
defined?
I use the label definition :
labels:
com.df.consulName: 'admin-http'
com.df.stackName: 'udm_webapp'
com.df.scrapeNetwork: 'udm_webapp_default'
com.df.notify: 'true'
com.df.port: '80'
in my docker-compose.yml file
In your original post, you state that does sometimes happens. Are you able to pinpoint when exactly it happens?
it's happen i think when a service is updated with
docker stack deploy --prune ...
When I restart the listener every notification are send like this :
The nodeInfo is empty but the number of replicas is ok.
Is DFSL able to access the overlay network that the service is connected to?
My swarm listener is in a stack separate from the others, exemple of my web stack :
version: '3.4'
services:
front-gateway:
image: varnish-consul-template:latest
ports:
- "80"
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "1"
deploy:
placement: *placement_worker_webapp
mode: replicated
replicas: 2
labels:
com.df.consulName: 'front-gateway'
com.df.stackName: 'xxxxxx_webapp'
com.df.scrapeNetwork: 'xxxxxx_webapp_default'
com.df.notify: 'true'
com.df.port: '80'
restart_policy:
condition: on-failure
update_config:
order: start-first
delay: 10s
parallelism: 1
resources:
reservations:
memory: 1G
Is that a problem ?
Check that the front-gateway
service is connected to the xxxxxx_webapp_default
overlay network. (Also xxxxxx_webapp_default
needs to be an overlay network).
ok I try and give you feedback. Thanks
Description
The nodeInfo parameter is not present in the service notification some times...
My docker-compose
Steps to reproduce the issue:
Results received:
Results expected: