| 序号 | 参数字段 | 功能 | 默认值 | | -------- | -------- | -------- |-------- | | 1 | enabled | 是否启动客户端 | true | | 2 | registryFetchIntervalSeconds | 获取服务的时间间隔 | 30 | | 3 | instanceInfoReplicationIntervalSeconds | 更新实例到Server的时间 | 30 | | 4 | initialInstanceInfoReplicationIntervalSeconds | 初始化实例到Server的时间 | 40 | | 5 | eurekaServiceUrlPollIntervalSeconds | 轮询Server地址更改时间 | 300 | | 6 | eurekaServerReadTimeOutSeconds | 读取Server超时时间 | 8 | | 7 | eurekaServerConnectTimeOutSeconds | 连接超时时间 | 5 | | 8 | eurekaServerTotalConnections | client到Server的连接总数 | 200 | | 9 | eurekaserverTotalConnectionsPerHost | client每个主机的连接总数 | 50 | | 10 | eurekaConnectionIdleTimeoutSeconds | client连接空闲关闭时间 | 30 | | 11 | heartbeatExecutorThreadPoolSize | 心跳连接池初始化线程数 | 5 | | 12 | heartbeatExecutorExponentialBackOffBound | 心跳超时重试延迟的最大乘数 | 10 | | 13 | cacheRefreshExecutorThreadPoolSize | 缓存刷新线程池的初始化线程数 | 5 | | 14 | CacheRefreshExecutorExponentialBackOffBound | 缓存刷新重试延迟时间的最大乘数 | 10 | | 15 | GZipContent | 注册表内容是否被压缩 | true | | 16 | useDnsForFetchingServiceUrl | 使用DNS获取服务端URL | false | | 17 | registerWithEureka | 是否将自身注册 | true | | 18 | preferSameZoneEureka | 指示当出现延迟或者其他原因,此实例是否会优先从同一个zone中寻找服务提供者 | true | | 19 | filterOnlyUpInstances | 获取实例时是否过滤,仅保留UP状态的实例 | true | | 20 | fetchRegistry | 指示client是否从Server获取注册信息 | true | | 21 | allowRedirects | 服务器是否可以将客户端请求重定向到备份服务器/集群 | false | | 22 | onDemandUpdateStatusChange | 通过ApplicationInfoManager更新本地状态将会触发(有限的速率)注册/更新到远程的sever | true | | 23 | shouldUnregisterOnShutdown | 指示客户端是否在客户端关闭时从远程服务器显式注销自身 | true | | 24 | shouldEnforceRegistrationAtInit | 客户端是否应在初始化期间强行注册 | false | | 25 | region | 获取实例所在区域,可以为任意值,一个region中有多个zone | us-east-1 | > spring boot + spring cloud 微服务开发实战