https://bz.apache.org/bugzilla/show_bug.cgi?id=62371

--- Comment #28 from Tim Levett <tim.lev...@gmail.com> ---
I'd like to provide some clarification for the docker swarm users that are
experiencing this issue. We are using docker stacks in docker swarm that are
deploying spring-boot applications with embedded tomcat. The challenge for us
was the underscore that is supplied by docker that separates the stack name and
the service name in the fully qualified DNS name. The good news is docker swarm
registers many DNS names inside the docker networking. Including stack_service,
service, and tasks.stack_service. If you have unique enough service names you
may be able to get away with just service name DNS resolution and still use the
load balancer that is shipped with docker swarm.

For example using my-stack_my-service. We noticed
my-stack_my-service:8080/actuator/health would return a 400, but
my-service:8080/actuator/health worked as expected. 

As mentioned above, you shouldn't use tasks.stack_service or stack_service for
http, just for auto discovery.

Hope this helps.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to