Java-Interview-Advanced/docs/distributed-system/service-register-discovery.md

15 lines
470 B
Markdown
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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