From e8af9393c94880a2f8e2548a86e6bfc295324a2f Mon Sep 17 00:00:00 2001 From: David Liu Date: Sat, 20 Oct 2018 16:01:55 -0700 Subject: [PATCH] update default server's eureka-client property The eureka server internal eureka-client need to be configured to get instances for all statuses, not just UP. This is necessary to properly calculate the correct self preservation threshold. See issue https://github.com/Netflix/eureka/issues/1127 for a discussion. --- eureka-server/src/main/resources/eureka-client.properties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eureka-server/src/main/resources/eureka-client.properties b/eureka-server/src/main/resources/eureka-client.properties index 6bc95083f..1e22b0085 100644 --- a/eureka-server/src/main/resources/eureka-client.properties +++ b/eureka-server/src/main/resources/eureka-client.properties @@ -50,6 +50,10 @@ eureka.serviceUrl.default=http://localhost:8080/eureka/v2/ # resource initialization eureka.shouldOnDemandUpdateStatusChange=false +# = false to get instances for all statuses, not just UP. This is necessary to properly calculate the correct +# self preservation threshold. See issue https://github.com/Netflix/eureka/issues/1127 for a discussion. +eureka.shouldFilterOnlyUpInstances=false + # the default eureka server application context is /eureka/v2 if deployed with eureka.war # Set this property for custom application context. #eureka.eurekaServer.context=eureka/v2