-
Notifications
You must be signed in to change notification settings - Fork 179
Perf updates #1523
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
Perf updates #1523
Conversation
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kfswain The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold if you want to address the nit
|
||
p.indexer.Add(state.PrefixHashes, ServerID(targetPod.NamespacedName)) | ||
// This function is just adding data, it does not need to block other operations. | ||
go func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Actually the entire PreRequest can be done async. But this lgtm as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, I'll add a TODO comment so we can figure this out later, I tested with this change, and I'm trying to make this minimally impactful since I plan to cherrypick this into the v1 branch.
You're probably right, but just in case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, PTAL
/lgtm Thanks! This is great! |
…n work, that doesnt need to block the request goroutine
ae80218
to
1e14400
Compare
/lgtm |
/unhold |
…n work, that doesnt need to block the request goroutine (#1523)
Small updates to logging and adding goroutine for function call that has high lock contention, but doesnt impact the request routine, so spinning up into another thread.
These were found during scale testing, can include an extensive write-up if needed, but the tl;dr is: