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

Allow subscribing to a single D2URI #1037

Merged
merged 8 commits into from
Feb 5, 2025
Merged

Allow subscribing to a single D2URI #1037

merged 8 commits into from
Feb 5, 2025

Conversation

PapaCharlie
Copy link
Member

@PapaCharlie PapaCharlie commented Jan 9, 2025

This new endpoint on XdsClient allows one to watch a single URI using the glob collection interface. The watcher will be notified whenever the URI changes or is deleted, which allows for lightweight watches of a singular URI instead of needing to watch the entire cluster.

I was able to test this against a local Observer deployment, and validated that the URI updates and deletions are correctly propagated.

This new endpoint on `XdsClient` allows one to watch a single URI using the glob
collection interface. The watcher will be notified whenever the URI changes or
is deleted, which allows for lightweight watches of a singular URI instead of
needing to watch the entire cluster.
Copy link
Contributor

@bohhyang bohhyang left a comment

Choose a reason for hiding this comment

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

Please see if my understanding aligns with your thought: we don't want to store this single uri resource into event bus, so that it will not to be put into load balancer, nor saved to FS, as it's not needed.

d2/src/main/java/com/linkedin/d2/xds/XdsClientImpl.java Outdated Show resolved Hide resolved
@bohhyang
Copy link
Contributor

just a reminder for updating the version and changelog

@PapaCharlie PapaCharlie changed the title Allow subscribing to a single resource Allow subscribing to a single D2URI Jan 31, 2025
@bohhyang
Copy link
Contributor

lgtm. Please test along with the container PR on a test app, showing the announcement monitoring metric result.

gradle.properties Outdated Show resolved Hide resolved
@PapaCharlie PapaCharlie merged commit 988c403 into master Feb 5, 2025
2 checks passed
@PapaCharlie PapaCharlie deleted the pc/single branch February 5, 2025 17:27
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.

2 participants