本文共 7843 字,大约阅读时间需要 26 分钟。
由于eureka开发文档的不全面,导致很多配置不是很清晰,下面的配置是根据源代码注释整理而来
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.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.Gets the number of times the server should try to bind to the candidate EIP.
The changes are effective at runtime.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
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)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.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.The interval with which the threshold as specified in getRenewalPercentThreshold() needs to be updated.
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.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.Get the number of times the replication events should be retried with peers.
Gets the interval with which the status information about peer nodes is updated.
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.Gets the timeout value for connecting to peer eureka nodes for replication.
Gets the timeout value for reading information from peer eureka nodes for replication.
Gets the total number of HTTP connections allowed to peer eureka nodes for replication.
Gets the total number of HTTP connections allowed to a particular peer eureka node for replication.
Gets the idle time after which the HTTP connection should be cleaned up.
Get the time interval with which the clean up task should wake up and check for expired delta information.
Get the time interval with which the task that expires instances should wake up and run.
Get the timeout value for querying the AWS for ASG information.
Get the time interval with which the ASG information must be queried from AWS.
Get the expiration value for the cached ASG information
Gets the time for which the registry payload should be kept in the cache if it is not invalidated by change events.
Gets the time interval with which the payload cache of the client should be updated.
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.Checks to see if the delta information can be served to client or not.
Get the idle time for which the status replication threads can stay alive.
Get the minimum number of threads to be used for status replication.
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.Checks whether to synchronize instances when timestamp differs.
Get the number of times that a eureka node would try to get the registry information from the peers during startup.
Get the wait/sleep time between each retry sync attempts,
if the prev retry failed and there are more retries to attempt.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.Get the idle time for which the replication threads can stay alive.
Get the minimum number of threads to be used for replication.
Get the maximum number of threads to be used for replication.
Get the time in milliseconds to try to replicate before dropping replication events.
Checks whether the connections to replicas should be primed. In AWS, the firewall requires sometime to establish network connection for new nodes.
Checks to see if the delta information can be served to client or not for remote regions.
Gets the timeout value for connecting to peer eureka nodes for remote regions.
Gets the timeout value for reading information from peer eureka nodes for remote regions.
Gets the total number of HTTP connections allowed to peer eureka nodes for remote regions.
Gets the total number of HTTP connections allowed to a particular peer eureka node for remote regions.
Gets the idle time after which the HTTP connection should be cleaned up for remote regions.
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.转载地址:http://dshna.baihongyu.com/