Eureka parameters -> Client terminal parameters

 1, the basic parameters configuration list:

parameter Defaults Explanation
eureka.client.availability-zones
   When the client told what region and availability-zones, run support configuration changes
 
eureka.client.filter-only-up-instances
 true  If the UP filtered InstanceStatus Examples
 
eureka.client.region
us-east-1   Specify the application instance where the region, AWS datacenters applicable
 
eureka.client.register-with-eureka
true  Whether the registration application examples to Eureka Server 
eureka.client.prefer-same-zone-eureka
true Whether precedence in the same zone with the application instance Eureka Server
eureka.client.on-demand-update-status-change
true Whether to update a local instance of real-time triggering ApplicationInfoManager state by the synchronization (restricted flow control is requested) to the Eureka Server
eureka.instance.metadata-map
  Metadata specifies the application example of the information
eureka.instance.prefer-ip-address
 false  Whether preferentially used instead of the IP address host name as an example of the field value hostName
eureka.instance.lease-expiration-duration-in-seconds
 90  Eureka Client to specify how often need to send a heartbeat to the Eureka Server to inform the Eureka Server instance still alive

2, a timing parameter configuration task list

parameter Defaults Explanation
eureka.client.cache-refresh-executor-thread-pool-size
2 Refresh cached thread pool size CacheRefreshThread
eureka.client.cache-refresh-executor-exponential-back-off-bound
 10  调度任务执行超时时下次的调度延时时间
eureka.client.heartbeat-executor-thread-pool-size
 心跳线程HeartbeatThread的线程池大小
eureka.client.heartbeat-executor-exponential-back-off-bound
 10  调度任务执行超时时下次的调度延时时间
eureka.client.registry-fetch-interval-seconds
 30 CacheRefreshThread线程的调度频率 
eureka.client.eureka-service-url-poll-interval-seconds
 5*60  AsyncResolver.updateTask刷新Eureka Server的时间间隔
eureka.client.initial-instance-info-replication-interval-seconds
 40  InstanceInfoReplicator将实例信息表更同步到Eureka Server的初始延时时间
eureka.client.instance-info-replication-interval-seconds
 30  InstanceInfoReplicator将实例信息变更同步到Eureka Server的时间间隔
eureka.instance.lease-renewal-interval-in-seconds
 30 Eureka Client向Eureka Server发送心跳的时间间隔 

3、Eureka Client http参数配置列表(Eureka Client底层httpClient与Eureka Server通信)

参数 默认值 说明
eureka.client.eureka-server-connect-timeout-seconds
5 连接超时时间
eureka.client.eureka-server-read-timeout-seconds
8 读超时时间
eureka.client.eureka-server-total-connections
200 连接池最大活动连接数(MaxTotal)
eureka.client.eureka-server-total-connections-per-host
50 每个host能使用的最大连接数(DefaultMaxPerRoute)
eureka.client.eureka-connection-idle-timeout-seconds
 30 连接池中连接的空闲超时时间(connectionIdleTimeout) 

Guess you like

Origin www.cnblogs.com/idoljames/p/11485988.html