Skip to content

Agent: Improve MD fetch and invalidate flow in ETCD mode using watchers - #303

Merged
aranadive merged 10 commits into
ai-dynamo:mainfrom
yanivz-nv:etcd
May 21, 2025
Merged

aranadive merged 10 commits into
ai-dynamo:mainfrom
yanivz-nv:etcd

Conversation

@yanivz-nv

@yanivz-nv yanivz-nv commented May 13, 2025 •

Copy link
Copy Markdown
Contributor
  • Refactor commWorker to move all ETCD functionality into new class nixlEtcdClient.
  • When watching for specific key we try to fetch, avoid trying to loadRemoteMD on deletion events.
  • Implement timeout when setting a watcher after trying to fetch a non-existing key.
  • Setup watchers on prefix of remote agent after fetching its metadata.
  • invalidateLocalMD will remove all keys with agent's prefix, then all remote watchers will be notified and invalidateRemoteMD.
  • Relevant tests depend on PR 315

@github-actions

Copy link
Copy Markdown

👋 Hi yanivz-nv! Thank you for contributing to ai-dynamo/nixl.

Your PR reviewers will review your contribution then trigger the CI to test your changes.

🚀

@yanivz-nv

Copy link
Copy Markdown
Contributor Author

For tests need to first merge PR #315.

Comment thread src/core/nixl_listener.cpp Outdated
Comment thread src/core/nixl_listener.cpp Outdated
Comment thread src/core/nixl_listener.cpp
Comment thread src/core/nixl_listener.cpp Outdated
Comment thread src/core/nixl_listener.cpp Outdated
Comment thread src/core/nixl_listener.cpp Outdated
Comment thread src/core/nixl_listener.cpp Outdated
Signed-off-by: Yaniv Zegerson <yanivz@nvidia.com>
@aranadive

Copy link
Copy Markdown
Contributor

/ok to test 3264b68

This branch was previously deployed

2 inactive deployments
GITLAB — 3264b689 Deployed May 21, 2025 by copy-pr-bot[bot]
SWX_AWS — 3264b689 Deployed May 21, 2025 by copy-pr-bot[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants