Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turbine and hystrix for multiple instances #116

Open
PBondugula opened this issue Dec 28, 2016 · 1 comment
Open

Turbine and hystrix for multiple instances #116

PBondugula opened this issue Dec 28, 2016 · 1 comment

Comments

@PBondugula
Copy link

I am trying to register multiple instances to spring admin server and trying to read turbine stream.

I am able to get the hystrix.stream after serving first request.

I am able to get the turbine stream with below URL:
http://localhost:8080/springadmins/api/turbine/stream?cluster=app1-dev

Below is the configuration for turbine.

config.properties - I didn't configure any properties.

---> application.properties has the below configuration.

turbine.aggregator.clusterConfig=app1-dev
turbine.instanceUrlSuffix.default=/app1/admin/hystrix.stream
turbine.instanceUrlSuffix.app1-dev=/admin/hystrix.stream
turbine.instanceUrlSuffix.app1-dev2=/admin/hystrix.stream
turbine.ConfigPropertyBasedDiscovery.default.instances=localhost,localhost:8080
turbine.ConfigPropertyBasedDiscovery.app1-dev.instances=app1.dev.welcome.com
turbine.ConfigPropertyBasedDiscovery.app1-dev2.instances=app1.dev2.welcome.com

---> application.yml file has below details:
spring.boot.admin.routes.endpoints:
env,metrics,trace,dump,jolokia,info,configprops,trace,logfile,refresh,flyway,liquibase,heapdump,hystrix.stream

spring.boot.admin.turbine:
clusters: default,app1-dev
url: /api/turbine/stream

--- added TurbineStreamServlet extends com.netflix.turbine.streaming.servlet.TurbineStreamServlet with below bean configured

@Bean
public ServletRegistrationBean turbineStreamServlet() {
    return new ServletRegistrationBean(new TurbineStreamServlet(), "/api/turbine/stream");
} 

Here I increased the instances from clould which has same domain name like 'app1.dev.welcome.com',
but not able to see spring boot registering multiple instances and trubine always shows Host:1 in admin page.
Can you please guide do we need any other configurations.

@hamza-elyaaqoubi
Copy link

Hello, have you get a response for your response ? I think that I have the same problem. Thanks the share the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants