Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 470 Bytes

service-register-discovery.md

File metadata and controls

14 lines (8 loc) · 470 Bytes

zk,一般来说还好,服务注册和发现,都是很快的

eureka,必须优化参数

eureka.server.responseCacheUpdateIntervalMs = 3000 eureka.client.registryFetchIntervalSeconds = 30000

eureka.client.leaseRenewalIntervalInSeconds = 30 eureka.server.evictionIntervalTimerInMs = 60000 eureka.instance.leaseExpirationDurationInSeconds = 90

服务发现的时效性变成秒级,几秒钟可以感知服务的上线和下线