netflix-eureka

how to manage spring-cloud bootstrap properties in a shared library?

限于喜欢 提交于 2019-12-12 11:10:18
问题 I'm in the process of building a library which provides an opinionated configuration for applications which use our Spring Cloud Config/Eureka setup. The idea is to deliver this configuration as a custom starter with little or no spring cloud-related boilerplate in individual microservice apps. At this point, the majority of the shared configuration that I want to put in this library consists of stuff in bootstrap.yml . I'd like to provide bootstrap.yml in my custom starter, but applications

Ribbon with Spring Cloud and Eureka: java.lang.IllegalStateException: No instances available for Samarths-MacBook-Pro.local

感情迁移 提交于 2019-12-12 08:24:57
问题 I am working on Spring Boot Eureka Client Application with Ribbon Load Balancer. I have two instances of the server registered with Eureka with the name "TEST". On the client side, I have the following code to fetch the server from Eureka. @Configuration @ComponentScan @EnableAutoConfiguration @EnableEurekaClient @RestController public class EurekaConsumerApplication { @Autowired DiscoveryClient discoveryClient; @Autowired RestTemplate restTemplate; @RequestMapping(value = "/",method =

Unauthorized in spring boot admin

为君一笑 提交于 2019-12-12 07:35:20
问题 I wanted to control the microservices that are running in the Eureka server. I used spring-boot-admin for this, but I am getting the error on accessing the information about the Trace,Log etc... The error I am getting is Error: {"timestamp":1489052472862,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/metrics"} My dependencies are <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator<

Hystrix Dashboard with Turbine issue

谁说我不能喝 提交于 2019-12-12 05:27:51
问题 I have multiple service that are mapped thru zuul so my turbine project looks for hystrix.stream from the zuul project. I think i have setup everyting right because I can see the hits getting updated properly. But the below section for Thread Pools keeps on loading what am i missing here and whats the use of it, couldnot find anything that can help me to understand it actual use.Here is the screenshot of my dahsboard. Hystrix Dashboard Image Let me know if more info is needed for the same. 来源

How can I get specific diagnostic information on an IP address from Zuul?

别说谁变了你拦得住时间么 提交于 2019-12-12 04:54:34
问题 I have Zuul and Eureka running, with a bunch of smaller services. Using Eureka, I can see all of the services and their associated host/IP address. Usually, I can boot up multiple instances of another service and Eureka will pick them up for Zuul to route to. I'm currently having an issue where I have three instances of a service registered in Eureka, but Zuul only routes to one of them. I don't know where to go to get diagnostic information from Zuul to understand why it isn't routing to the

Eureka with AWS ECS

不问归期 提交于 2019-12-12 04:36:09
问题 We are using Eureka with AWS ECS service that can scale docker containers. In ECS if you leave out the host port, or specify it as being '0', in your task definition, then the port will be chosen automatically and reported back to the service. After the task is running, describing it should show what port(s) it bound to. How does Eureka can resolve what port to use if we have several EC2 instance. For example Service A from EC2-A try to call Service B from EC2-B. So Eureka can resolve

JHIPSTER Registry and NODEJS eureka-js-client NullPointerException

▼魔方 西西 提交于 2019-12-12 04:13:40
问题 I would like to add a node.js server as a microservice application on jhipster-registry. I use eureka-js-client npm package You can find a node test project "zhudan/node-eureka" on github // ------------------ Eureka Config -------------------------------------------- var Eureka = require("eureka-js-client").Eureka; var client = new Eureka({ filename: 'eureka-client', cwd: __dirname }); client.logger.level('debug'); client.start(function(error){ console.log(error || 'complete'); }); // ------

How to get username from JWT token while requesting for another service after authentication?

不打扰是莪最后的温柔 提交于 2019-12-11 17:23:04
问题 I am developing a spring boot application having front end with angular6 and using Eureka for service registry and zuul for authentication gateway, both as separate service. I am using jwt for authentication. When I hit the url localhost:8080/dis/academics/complaint/getMyComplaints with authorization header having value jwt token, then it goes to gateway service and then gateway forwards this to academics service after valid authentication at gateway. Now I want to get username from token in

Spring Cloud Gateway auto routing to Eureka services

两盒软妹~` 提交于 2019-12-11 16:56:13
问题 I work with Spring to create microservices. I am using Eureka for service discovery and Zuul for routing. Now I wanted to switch to Spring Cloud Gateway (because of non-blocking nature) but I've failed to figure out a way of auto routing to each Eureka service. For example if one service 'eureka-client' registers to Eureka, Zuul does provide a path like localhost:8762/eureka-client to this service by itself. With Spring Cloud Gateway, I've to create a route all by myself for each service.

How do I wire up spring oauth using spring eureka?

守給你的承諾、 提交于 2019-12-11 10:34:55
问题 I have created a Single Page Application using the Spring Tutorial for making one with AngularJS and OAuth and such found here: https://spring.io/guides/tutorials/spring-security-and-angular-js/#_multiple_ui_applications_and_a_gateway_single_page_application_with_spring_and_angular_js_part_vi This is the application.yml files for the SPA application: security: user: password: none oauth2: client: accessTokenUri: localhost:7777/uaa/oauth/token userAuthorizationUri: localhost:7777/uaa/oauth