Tags: Mu-L/eureka
Tags
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.
Gracefully handle HTML errors from Eureka server (Netflix#1265) It is possible to get HTML responses from the server (e.g. Apache fails to talk to backend API). These would result in a failure to deserialize and a random exception logged.
Cleanup resources on web-app shutdown (Netflix#1207) (Netflix#1251)
Merge pull request Netflix#1218 from elandau/bugfix/discovery_client_… …constructor Put back deprecated constructor
PreviousNext