Tags: guoqh/eureka
Tags
Merge pull request Netflix#1307 from yobennett/feature/add-should-enf… …orce-fetch-registry-at-init Add shouldEnforceFetchRegistryAtInit config
Check for existence of ConfigurationManager (Netflix#1288) This is useful if a project has excluded Archaius 1 such as spring-cloud-netflix. This is a simple workaround.
Add stats for DiscoveryClient (Netflix#1282) Introduce a nested class for `DiscoveryClient` to make it easier for users to read helpful attributes that can assist in log analysis and debugging. Most of these attributes are captured by existing metrics: - `initTimestampMs`: timestamp when the client was initialized - `localRegistrySize`: number of instances for all applications - `lastSuccessfulRegistryFetchTimestampMs`: timestamp for last successful fetch - `lastSuccessfulHeartbeatTimestampMs`: timestamp for last successful heartbeat Add a new attribute called `initLocalRegistrySize`, which is the number of instances for all applications read when the client was initialized. Include a helper method that uses this attribute so that users can determine whether the client's initial fetch of registry information succeeded or failed. Note that other accessors are suffixed with `Ms` (for milliseconds) to denote the time unit. Additionally, update the existing `registrySize` with the value from `initLocalRegistrySize` during initialization instead of waiting until the first local registry refresh. Co-authored-by: John Bennett <[email protected]>
Decrement expectedNumberOfClientsSendingRenews for expired leases (Ne… …tflix#1271) Move the logic that decrements the expected number of clients into cancelInternal - this should ensure that we're calling it both for explicit cancels as well as well as when the instance lease expires. Fixes Netflix#1266.
PreviousNext