当前位置: 首页 > news >正文

服务发现全量配置整理(更新中)

Eureka 服务发现配置

由于eureka开发文档的不全面,导致很多配置不是很清晰,下面的配置是根据源代码注释整理而来

Eureka 服务发现服务端全量配置

假设名称空间是eureka

  • eureka.awsAccessId
     

Gets the AWS Access Id. This is primarily used for Elastic IP Biding.
The access id should be provided with appropriate AWS permissions to bind the EIP.

  • eureka.awsSecretKey
     

Gets the AWS Secret Key. This is primarily used for Elastic IP Biding.
The access id should be provided with appropriate AWS permissions to bind the EIP.

  • eureka.eipBindRebindRetries
     

Gets the number of times the server should try to bind to the candidate EIP.
The changes are effective at runtime.

  • eureka.eipBindRebindRetryIntervalMsWhenUnbound
     

Get the interval with which the server should check if the EIP is bound and should try to bind in the case if it is already not bound, iff the EIP is not currently bound

  • eureka.eipBindRebindRetryIntervalMs
     

Gets the interval with which the server should check if the EIP is bound and should try to bind in the case if it is already not bound,
iff the EIP is already bound. (so this refresh is just for steady state checks)

  • eureka.enableSelfPreservation
     

Checks to see if the eureka server is enabled for self preservation.
When enabled, the server keeps track of the number of renewals it should receive from the server.
Any time, the number of renewals drops below the threshold percentage as defined by getRenewalPercentThreshold(),
the server turns off expirations to avert danger.This will help the server in maintaining the registry information in case of network problems between client and the server.

  • eureka.peerEurekaNodesUpdateIntervalMs
     

The interval with which the information about the changes in peer eureka nodes is updated.
The user can use the DNS mechanism or dynamic configuration provided by Archaius to change the information dynamically.

  • eureka.renewalThresholdUpdateIntervalMs
     

The interval with which the threshold as specified in getRenewalPercentThreshold() needs to be updated.

  • eureka.renewalPercentThreshold
     

The minimum percentage of renewals that is expected from the clients in the period specified by getRenewalThresholdUpdateIntervalMs().
If the renewals drop below the threshold, the expirations are disabled if the shouldEnableSelfPreservation() is enabled.

  • eureka.enableReplicatedRequestCompression
     

If set to true, the replicated data send in the request will be always compressed.
This does not define response path, which is driven by "Accept-Encoding" header.

  • eureka.numberOfReplicationRetries
     

Get the number of times the replication events should be retried with peers.

  • eureka.peerEurekaStatusRefreshTimeIntervalMs
     

Gets the interval with which the status information about peer nodes is updated.

  • eureka.waitTimeInMsWhenSyncEmpty
     

Gets the time to wait when the eureka server starts up unable to get instances from peer nodes.
It is better not to start serving rightaway during these scenarios as the information that is stored in the registry may not be complete.
When the instance registry starts up empty, it builds over time when the clients start to send heartbeats and the server requests the clients for registration information.

  • eureka.peerNodeConnectTimeoutMs
     

Gets the timeout value for connecting to peer eureka nodes for replication.

  • eureka.peerNodeReadTimeoutMs
     

Gets the timeout value for reading information from peer eureka nodes for replication.

  • eureka.peerNodeTotalConnections
     

Gets the total number of HTTP connections allowed to peer eureka nodes for replication.

  • eureka.peerNodeTotalConnectionsPerHost
     

Gets the total number of HTTP connections allowed to a particular peer eureka node for replication.

  • eureka.peerNodeConnectionIdleTimeoutSeconds
     

Gets the idle time after which the HTTP connection should be cleaned up.

  • eureka.retentionTimeInMSInDeltaQueue
     



Get the time for which the delta information should be cached for the clients to retrieve the value without missing it.
  • eureka.deltaRetentionTimerIntervalInMs
     

Get the time interval with which the clean up task should wake up and check for expired delta information.

  • eureka.evictionIntervalTimerInMs
     

Get the time interval with which the task that expires instances should wake up and run.

  • eureka.asgQueryTimeoutMs
     

Get the timeout value for querying the AWS for ASG information.

  • eureka.asgUpdateIntervalMs
     

Get the time interval with which the ASG information must be queried from AWS.

  • eureka.asgCacheExpiryTimeoutMs
     

Get the expiration value for the cached ASG information

  • eureka.responseCacheAutoExpirationInSeconds
     

Gets the time for which the registry payload should be kept in the cache if it is not invalidated by change events.

  • eureka.responseCacheUpdateIntervalMs
     

Gets the time interval with which the payload cache of the client should be updated.

  • eureka.shouldUseReadOnlyResponseCache
     

The com.netflix.eureka.registry.ResponseCache currently uses a two level caching strategy to responses.
A readWrite cache with an expiration policy, and a readonly cache that caches without expiry.

  • eureka.disableDelta
     

Checks to see if the delta information can be served to client or not.

  • eureka.maxIdleThreadAgeInMinutesForStatusReplication
     

Get the idle time for which the status replication threads can stay alive.

  • eureka.minThreadsForStatusReplication
     

Get the minimum number of threads to be used for status replication.

  • eureka.maxElementsInStatusReplicationPool
     

Get the maximum number of replication events that can be allowed to back up in the status replication pool.
Depending on the memory allowed, timeout and the replication traffic, this value can vary.

  • eureka.syncWhenTimestampDiffers
     

Checks whether to synchronize instances when timestamp differs.

  • eureka.numberRegistrySyncRetries
     

Get the number of times that a eureka node would try to get the registry information from the peers during startup.

  • eureka.registrySyncRetryWaitMs
     

Get the wait/sleep time between each retry sync attempts,
if the prev retry failed and there are more retries to attempt.

  • eureka.maxElementsInPeerReplicationPool
     

Get the maximum number of replication events that can be allowed to back up in the replication pool. This replication pool is responsible for all events except status updates.
Depending on the memory allowed, timeout and the replication traffic, this value can vary.

  • eureka.maxIdleThreadAgeInMinutesForPeerReplication
     

Get the idle time for which the replication threads can stay alive.

  • eureka.minThreadsForPeerReplication
     

Get the minimum number of threads to be used for replication.

  • eureka.maxThreadsForPeerReplication
     

Get the maximum number of threads to be used for replication.

  • eureka.maxTimeForReplication
     

Get the time in milliseconds to try to replicate before dropping replication events.

  • eureka.primeAwsReplicaConnections
     

Checks whether the connections to replicas should be primed. In AWS, the firewall requires sometime to establish network connection for new nodes.

  • eureka.disableDeltaForRemoteRegions
     

Checks to see if the delta information can be served to client or not for remote regions.

  • eureka.remoteRegionConnectTimeoutMs
     

Gets the timeout value for connecting to peer eureka nodes for remote regions.

  • eureka.remoteRegionReadTimeoutMs
     

Gets the timeout value for reading information from peer eureka nodes for remote regions.

  • eureka.remoteRegionTotalConnections
     

Gets the total number of HTTP connections allowed to peer eureka nodes for remote regions.

  • eureka.remoteRegionTotalConnectionsPerHost
     

Gets the total number of HTTP connections allowed to a particular peer eureka node for remote regions.

  • eureka.remoteRegionConnectionIdleTimeoutSeconds
     

Gets the idle time after which the HTTP connection should be cleaned up for remote regions.

  • eureka.remoteRegion.gzipContent
     

Indicates whether the content fetched from eureka server has to be compressed for remote regions whenever it is supported by the server.
The registry information from the eureka server is compressed for optimum network traffic.

相关文章:

  • MySql版本查看
  • 业务员类别窗体的制作
  • lucene 思维导图,让搜索引擎不再难懂
  • “如何让团队成员获得成长?”四名高段位 CTO 为你解惑
  • 二叉树应用
  • Yii2 RULE 校验器
  • 使用xorm工具,根据数据库自动生成 go 代码
  • 服务端渲染(SSR)
  • 2019互联网校招薪资表: BAT、华为还没有TMD高
  • 使用java执行ffmpeg命令进行推流操作
  • vim利用vundle安装YouCompleteMe
  • 高性能负载均衡之分类架构
  • 华为关于多层网络可视化的研究
  • OpenStack安装流程(juno版)- 添加网络服务(neutron)- controller节点
  • docker-consul
  • [译]Python中的类属性与实例属性的区别
  • 「面试题」如何实现一个圣杯布局?
  • JS数组方法汇总
  • Shell编程
  • Solarized Scheme
  • Spark VS Hadoop:两大大数据分析系统深度解读
  • 闭包--闭包作用之保存(一)
  • 多线程事务回滚
  • 给初学者:JavaScript 中数组操作注意点
  • 来,膜拜下android roadmap,强大的执行力
  • 如何优雅的使用vue+Dcloud(Hbuild)开发混合app
  • 如何优雅地使用 Sublime Text
  • 使用Tinker来调试Laravel应用程序的数据以及使用Tinker一些总结
  • 微服务框架lagom
  • 阿里云重庆大学大数据训练营落地分享
  • ​MySQL主从复制一致性检测
  • #[Composer学习笔记]Part1:安装composer并通过composer创建一个项目
  • #Java第九次作业--输入输出流和文件操作
  • #Linux(Source Insight安装及工程建立)
  • ${ }的特别功能
  • %check_box% in rails :coditions={:has_many , :through}
  • (C语言)深入理解指针2之野指针与传值与传址与assert断言
  • (第9篇)大数据的的超级应用——数据挖掘-推荐系统
  • (二十四)Flask之flask-session组件
  • (附源码)springboot优课在线教学系统 毕业设计 081251
  • (附源码)springboot掌上博客系统 毕业设计063131
  • (附源码)计算机毕业设计SSM教师教学质量评价系统
  • (十六)一篇文章学会Java的常用API
  • (数位dp) 算法竞赛入门到进阶 书本题集
  • (小白学Java)Java简介和基本配置
  • (转)C语言家族扩展收藏 (转)C语言家族扩展
  • (转)一些感悟
  • .\OBJ\test1.axf: Error: L6230W: Ignoring --entry command. Cannot find argumen 'Reset_Handler'
  • .gitattributes 文件
  • .NET 8.0 发布到 IIS
  • .net mvc actionresult 返回字符串_.NET架构师知识普及
  • .NET教程 - 字符串 编码 正则表达式(String Encoding Regular Express)
  • .NET连接MongoDB数据库实例教程
  • .py文件应该怎样打开?
  • @value 静态变量_Python彻底搞懂:变量、对象、赋值、引用、拷贝