Eureka Server及Client 配置信息详解


EurekaDashboardProperties(仪表盘配置)

仪表盘即前端管理界面: 配置: eureka.dashboard.名称

名称默认值说明
path/访问仪表盘的路径
enabletrue是否开启仪表盘

EurekaClientConfigBean(客户端配置Bean)

  1. 配置前缀 eureka.client.
  2. 详细参考:spring-cloud-netflix-eureka-client.jar下“META-INF/spring-configtion-metadata.json”
名称默认值说明
enabledtrue客户端是否已启用
EurekaTransportConfig transportnew CloudEurekaTransportConfig()
registryFetchIntervalSeconds30从Eureka服务端获取注册表间隔时间(秒)
instanceInfoReplicationIntervalSeconds30实例信息复制到Eureka服务器间隔时间30(秒)
initialInstanceInfoReplicationIntervalSeconds40初始化实例信息复制到Eureka服务器间隔时间(秒)
eurekaServiceUrlPollIntervalSeconds300客户端循环Eureka服务器端URL间隔时间
proxyPort代理端口
proxyHost代理主机
proxyUserName代理用户名
proxyPassword代理密码
eurekaServerReadTimeoutSeconds8读取Eureka服务端超时时间(秒)
eurekaServerConnectTimeoutSeconds5连接Eureka服务端超时时间(秒)
backupRegistryImpl回退注册表信息实现,只有当Eureka客户端第一次启动有效
eurekaServerTotalConnections200连接Eureka服务器端总连接数
eurekaServerTotalConnectionsPerHost50连接Eureka服务器端主机总连接数
eurekaServerURLContext获取Eureka服务器端URL上下文,当URL列表来自DNS时需要设置。
eurekaServerPortEureka服务端端口号
eurekaServerDNSNameEureka服务器端DNS名称,当需要开启DNS动态更新Eureka服务端URLS
region“us-east-1”实例所在区域
eurekaConnectionIdleTimeoutSeconds30Eureka连接空闲超时时间(秒),即HTTP在关闭之前可以保持空闲
registryRefreshSingleVipAddress刷新单个VIP地址注册表
heartbeatExecutorThreadPoolSize2心跳执行器线程池大小
heartbeatExecutorExponentialBackOffBound10心跳执行器指数回退边界,是重试延迟最大倍值。
cacheRefreshExecutorThreadPoolSize2缓存刷新执行器线程池大小
cacheRefreshExecutorExponentialBackOffBound10缓存刷新执行器指数回退边界,是重试延迟最大倍值。
serviceUrlHashMap(String,String)服务器端URLMap
gZipContenttrue开启gZip压缩内容
useDnsForFetchingServiceUrlsfalse使用DNS获取服务端URL列表
registerWithEurekatrue注册实例到Eureka服务器端
preferSameZoneEurekatrue首选同一区域Eureka服务
logDeltaDifffalse对数增量差异
disableDeltafalse开启增量
fetchRemoteRegionsRegistry获取远程区域注册表
availabilityZonesHashMap(String,String)可用区域
filterOnlyUpInstancestrue仅刷选UP实例
fetchRegistrytrue获取注册表
dollarReplacement_-替换美元号,在序列化和反序列化时
escapeCharReplacement__转义字符替换,在序列化和反序列化时
allowRedirectsfalse允许重定向,即是否可重定向到从集群
onDemandUpdateStatusChangetrue按需更新状态更改,本地状态更新触发远程注册或更新
encoderNamefalse编码器名称
decoderNamefalse解码器名称
clientDataAcceptEurekaAccept.full.name客户端数据接受
shouldUnregisterOnShutdownture实例下线时注销在Eureka服务器端的信息
shouldEnforceRegistrationAtInitfalse在初始化时是否强制注册
order0排序

EurekaServerConfigBean (服务配置Bean)

  1. 配置前缀 eureka.server.
  2. 详细参考:spring-cloud-netflix-eureka-server.jar下“META-INF/spring-configtion-metadata.json”
名称默认值说明
aWSAccessId
aWSSecretKey
eIPBindRebindRetries3eIP 重试绑定次数
eIPBindingRetryIntervalMs5 * MINUTESeIP重试绑定间隔时间(毫秒)
eIPBindingRetryIntervalMsWhenUnbound1 * MINUTESeIP重试绑定时间间隔(毫秒)当未绑定时
enableSelfPreservationtrue启用自我保护
renewalPercentThreshold0.85续约百分比阀值
renewalThresholdUpdateIntervalMs15 * MINUTES更新续约阀值间隔时间(毫秒)
peerEurekaNodesUpdateIntervalMs10 * MINUTES对等Eureka节点更新间隔时间
numberOfReplicationRetries5复制重试次数
peerEurekaStatusRefreshTimeIntervalMs30 * 1000对等Eureka状态刷新时间间隔(毫秒)
waitTimeInMsWhenSyncEmpty5 * MINUTES同步为空时的等待时间(毫秒
peerNodeConnectTimeoutMs200对等节点连接超时时间(毫秒)
peerNodeReadTimeoutMs200对等节点读取超时时间(毫秒)
peerNodeTotalConnections1000对等节点总连接数
peerNodeTotalConnectionsPerHost500对等节点主机总连接数
peerNodeConnectionIdleTimeoutSeconds30对等节点连接空闲超时时间(秒)
retentionTimeInMSInDeltaQueue3 * MINUTES增量队列中的保留时间(毫秒)
deltaRetentionTimerIntervalInMs30 * 1000增量保留计时器间隔(毫秒)
evictionIntervalTimerInMs60 * 1000去除计时器间隔时间(毫秒)
aSGQueryTimeoutMs300aSG查询超时时间(毫秒)
aSGUpdateIntervalMs5 * MINUTESaSG更新间隔时间(毫秒)
aSGCacheExpiryTimeoutMs10 * MINUTESaSG缓存过期时间(毫秒)
responseCacheAutoExpirationInSeconds180响应缓存自动过期时间(秒)
responseCacheUpdateIntervalMs30 * 1000响应缓存更新时间时间(毫秒)
useReadOnlyResponseCachetrue使用只读响应缓存
disableDeltafalse禁用增量
maxIdleThreadInMinutesAgeForStatusReplication10状态复制的最大空闲线程数(分钟)
minThreadsForStatusReplication1状态复制的最小线程数
maxThreadsForStatusReplication1状态复制的最大线程数
maxElementsInStatusReplicationPool10000状态复制池中的最大元素数
syncWhenTimestampDifferstrue当时间戳不同时同步
registrySyncRetries0注册表同步重试次数
registrySyncRetryWaitMs30 * 1000注册表同步重试等待时间(毫秒)
maxElementsInPeerReplicationPool10000对等复制池中的最大元素数
maxIdleThreadAgeInMinutesForPeerReplication15对等复制的最大空闲线程时间(分钟)
minThreadsForPeerReplication5对等复制最小线程数
maxThreadsForPeerReplication20对等复制最大线程数
maxTimeForReplication30000复制最长时间
primeAwsReplicaConnectionstrue
disableDeltaForRemoteRegionsfasle禁用远程区域增量
remoteRegionConnectTimeoutMs1000远程区域连接超时时间(毫秒)
remoteRegionReadTimeoutMs1000远程区域读超时时间(毫秒)
remoteRegionTotalConnections1000远程区域总连接数
remoteRegionTotalConnectionsPerHost500远程区域主机总连接数
remoteRegionConnectionIdleTimeoutSeconds30远程区域连接空闲超时时间(秒)
gZipContentFromRemoteRegiontrue获取远程区域内容gZip压缩
remoteRegionUrlsWithNameMap<String,String>远程区域URL和名称
remoteRegionUrlsString[]远程区域URLS
remoteRegionAppWhitelistHashMap<String,Set>远程区域APP白名单
remoteRegionRegistryFetchInterval30远程区域注册表获取间隔时间
remoteRegionFetchThreadPoolSize20远程区域获取线程池大小
remoteRegionTrustStore“”远程区域信任存储
remoteRegionTrustStorePassword“changeit”远程区域信任密码
disableTransparentFallbackToOtherRegionfalse禁用透明回退到其他区域
batchReplication批量复制
rateLimiterEnabled = false速率限制器是否启用
rateLimiterThrottleStandardClientsfalse速率限制器节流标准客户端
rateLimiterPrivilegedClientsCollections.emptySet()
rateLimiterBurstSize10速率限制器并发大小
rateLimiterRegistryFetchAverageRate500速率限制注册表获取平均速率
rateLimiterFullFetchAverageRate100速率限制全取平均速率
logIdentityHeaderstrue日志标识头
listAutoScalingGroupsRoleName“ListAutoScalingGroups”列表自动缩放组角色名称
enableReplicatedRequestCompressionfalse启动复制请求压缩
jsonCodecNamejson编码器名称
xmlCodecNamexml编码器名称
route53BindRebindRetries3
route53BindingRetryIntervalMs5 * MINUTES
route53DomainTTL30
bindingStrategyAwsBindingStrategy.EIP
minAvailableInstancesForPeerReplication-1对等复制的最小可用实例数
initialCapacityOfResponseCache1000响应缓存的初始容量
expectedClientRenewalIntervalSeconds30预期客户端续订间隔时间(秒)
useAwsAsgApitrue使用AwsAsgApi
myUrl
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值