Skip to content

Commit

Permalink
update default server's eureka-client property
Browse files Browse the repository at this point in the history
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 #1127 for a discussion.
  • Loading branch information
qiangdavidliu authored Oct 20, 2018
1 parent 08cea61 commit e8af939
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eureka-server/src/main/resources/eureka-client.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8af939

Please sign in to comment.