Files
Java-Interview-Advanced/docs/distributed-system/service-register-discovery.md
2020-04-25 19:55:58 +08:00

15 lines
470 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

**zk一般来说还好服务注册和发现都是很快的**
**eureka必须优化参数**
**eureka.server.responseCacheUpdateIntervalMs = 3000**
**eureka.client.registryFetchIntervalSeconds = 30000**
**eureka.client.leaseRenewalIntervalInSeconds = 30**
**eureka.server.evictionIntervalTimerInMs = 60000**
**eureka.instance.leaseExpirationDurationInSeconds = 90**
**服务发现的时效性变成秒级,几秒钟可以感知服务的上线和下线**