We are evaluating Docker Datacenter (UCP 2.1.4/DTR 2.2.5) with docker 17.03.2-ee-4, build 1e6d71e installed on 6 nodes.
I deploy a simple Spring Boot 1.5.4 application with a Postgres DB backend.
The stack is working fine when first deployed, but after a while the Boot part is losing connection to the Postgres database in the Swarm.
I tried to run the same app on a single host and it is stable, the app will work without any issue.
Here is the compose I am using to deploy the stack from the UCP
version: '3' services: web: image: dudockv8.dev.mydomain.com/aa/score:1.0.18 deploy: replicas: 1 update_config: parallelism: 1 delay: 10s restart_policy: condition: on-failure placement: constraints: - node.role != manager restart: always ports: - '8080:8080' depends_on: - db environment: - DB_URL=jdbc:postgresql://db:5432/agilea db: image: postgres:9.6.3-alpine deploy: restart_policy: condition: on-failure placement: constraints: - node.role != manager restart: always environment: POSTGRES_DB: agilea POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres PGDATA: /var/lib/postgresql/data/pgdata ports: - '5432' volumes: - postgresdata:/var/lib/postgresql/data/pgdata volumes: postgresdata:
The nodes are VMs in a VMWare network and I can’t find any logs that would point to a resolution.
When I restart the application I can use it again but this is losing connection soon after.
Also, I tried to deploy the Example Voting App and it is not registering some votes
So, clearly something wrong in the network, but I can’t figure out what.
Any idea on what could be going on here?