Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add debug log to dual read caches #952

Merged
merged 3 commits into from
Dec 12, 2023
Merged

add debug log to dual read caches #952

merged 3 commits into from
Dec 12, 2023

Conversation

bohhyang
Copy link
Contributor

@bohhyang bohhyang commented Dec 12, 2023

Summary

We've seen the Cluster, Service, Uri properties OutOfSync metrics in DualReadLoadBalancer sensor being high for some apps (voyager-api-groups-dash, registration-mt, etc). The metric seems to increment on every update of the property (see attached screenshot of UriPropertiesOutOfSyncCount metric). It bumps up periodically, likely during downstream deployments.
Screenshot 2023-12-12 at 9 15 17 AM

This change added debug logs to when entries are added/compared in the dual read caches to further debug the issue.

Another change is for SI-36476 where D2ClientJmxManager tries to find the right jmx name for d2 services being removed at shutdown (the name depends on dual read mode), causing the executor for getting the dual read mode throws errors since it's already shut down. Added a check to skip getting dual read mode if the executor is shut down (the last read dual read mode will be used).

Copy link
Collaborator

@brycezhongqing brycezhongqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bohhyang bohhyang merged commit 4d585fa into master Dec 12, 2023
2 checks passed
@bohhyang bohhyang deleted the bohan/debugOutOfSync branch December 12, 2023 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants