netflix-eureka

Understanding Spring Cloud Eureka Server self preservation and renew threshold

自古美人都是妖i 提交于 2019-11-27 02:51:08
I am new to developing microservices, although I have been researching about it for a while, reading both Spring's docs and Netflix's. I have started a simple project available on Github . It is basically a Eureka server (Archimedes) and three Eureka client microservices (one public API and two private). Check github's readme for a detailed description. The point is that when everything is running I would like that if one of the private microservices is killed, the Eureka server realizes and removes it from the registry. I found this question on Stackoverflow , and the solution passes by using

How to config multiple Eureka Servers from client in Spring Cloud

谁说胖子不能爱 提交于 2019-11-27 00:53:12
问题 From the spring doc, I see we can have peer eureka server together, so for Eureka1, in application.yml, I can have: spring: profiles: peer1 eureka: instance: hostname: peer1 client: serviceUrl: defaultZone: http://peer2/eureka/ And in Eureka Server 2, I can have: spring: profiles: peer2 eureka: instance: hostname: peer2 client: serviceUrl: defaultZone: http://peer1/eureka/ Now these two eureka servers are aware each other, it is good. BUT, now in configuring client, when they register again

Eureka and Kubernetes

一世执手 提交于 2019-11-26 17:35:14
问题 I am putting together a proof of concept to help identify gotchas using Spring Boot/Netflix OSS and Kubernetes together. This is also to proove out related technologies such as Prometheus and Graphana. I have a Eureka service setup which is starting with no trouble within my Kubernetes clouster. This is named discovery and has been given the name "discovery-1551420162-iyz2c" when added to K8 using kubectl run discovery --image=xyz/discovery-microservice --replicas=1 --port=8761 For my config