feat: improve coordinator peer mapping performance#23696
Conversation
sreya
commented
Mar 26, 2026
- Skip DB query in mappingQuery when no local mapper exists (~90% reduction)
- Add O(1) set-based dedup to workQ (eliminates O(n²) during bursts)
- Add tunnelsByPeer reverse index to skip irrelevant peer updates
- Batch tailnet tunnel queries for reduced DB round-trips
- Fix listenReadyForHandshake to return early on ErrDroppedMessages
d6baf35 to
2dec561
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2dec561a3b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
3262539 to
d44bf05
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d44bf05d40
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fd510c0e34
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Skip DB query in mappingQuery when no local mapper exists (~90% reduction) - Add O(1) set-based dedup to workQ (eliminates O(n²) during bursts) - Batch tailnet tunnel queries for reduced DB round-trips - Fix listenReadyForHandshake to return early on ErrDroppedMessages
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |