0

When deploying Spring Cloud-enabled microservices on JBoss, we have to use a contextPath. Turbine doesn't seem to fetch the contextPath from eureka and eureka doesn't seem to ask it to the microservices.

Some more details:

Every microservice has its own Jboss, and its own contextPath defined in the war, as such:

hostname1:port1/products
hostname2:port2/users
hostname3:port3/orders

Endpoints (actuator and our own) are exposed after the contextPath (not using management.context-path):

hostname1:port1/products/env
hostname1:port1/products/info
hostname1:port1/products/books
hostname1:port1/products/books/123

Eureka only cares about the hostname and port. It allows us to define a different UrlPath to info and health although this is not part of the data Turbine needs to get to hystrix.stream:

eureka:
  instance:
    statusPageUrlPath: ${server.contextPath}/info
    healthCheckUrlPath: ${server.contextPath}/health

Is there a way to tell Turbine which contextPath is used for which application? These are different per application so a cluster-wide fix described here wouldn't be sufficient I suppose.

Community
  • 1
  • 1
Andreas Evers
  • 252
  • 2
  • 10
  • I turbine "cluster" is for instances of a service, so all of "products" or "users", so it should work for your case. – spencergibb May 22 '15 at 17:05
  • Since clusters cannot be aggregated into a single stream, it would mean ops need to have a dashboard open for every type of microservice. Is that manageable in your experience? Would the dashboard perhaps only be looked at during deployment of a specific cluster? – Andreas Evers May 26 '15 at 08:14
  • You can only view one cluster at a time in normal turbine. With https://github.com/spring-cloud/spring-cloud-netflix/tree/master/spring-cloud-netflix-hystrix-amqp we aggregate all statistics via rabbitmq (not http), so you can see everything at once. – spencergibb May 26 '15 at 14:52
  • Wow great piece of information! I'd like to accept your comment as answer but I don't think that's possible. Well either way thanks for the fast and helpful feedback Spencer :) – Andreas Evers May 26 '15 at 15:29
  • moved my comment to an answer – spencergibb May 26 '15 at 15:59

1 Answers1

0

You can only view one cluster at a time in normal turbine. With spring-cloud-netflix-hystrix-amqp we aggregate all statistics via rabbitmq (not http), so you can see everything at once.

spencergibb
  • 24,471
  • 6
  • 69
  • 75