-
Notifications
You must be signed in to change notification settings - Fork 381
feat: support prisdb kvcache data plane metrics #1158
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
base: main
Are you sure you want to change the base?
feat: support prisdb kvcache data plane metrics #1158
Conversation
Signed-off-by: Xuanjinlong <[email protected]>
232a7b2
to
6d13308
Compare
@@ -262,7 +262,7 @@ func buildCacheStatefulSet(kvCache *orchestrationv1alpha1.KVCache) *appsv1.State | |||
|
|||
annotations := map[string]string{ | |||
"prometheus.io/scrape": "true", | |||
"prometheus.io/port": strconv.Itoa(params.AdminPort), | |||
"prometheus.io/port": strconv.Itoa(2112), |
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.
Can we extract default values instead of hard-coding them? 🤔
I will take a review this week |
|
||
// kvcache hpkv monitor agent for member registration | ||
// +kubebuilder:validation:Optional | ||
HpkvMonitorAgent *RuntimeSpec `json:"hpkvmonitoragent,omitempty"` |
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.
I kind of forgot we plan to use a separate pod or just a sidecar of kvcache watcher role?
If we plan to use sidecar, we do not necessarily need to introduce the api change here?
@@ -358,6 +360,28 @@ func buildCacheStatefulSet(kvCache *orchestrationv1alpha1.KVCache) *appsv1.State | |||
}, | |||
}, | |||
}, | |||
{ | |||
Name: "kvcache-hpkv-monitor-agent", | |||
Image: kvCache.Spec.HpkvMonitorAgent.Image, |
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.
I think we can use override mode for this setup. Let me share one example with you.
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.
could you check this example? https://github.com/vllm-project/aibrix/blob/main/samples/kvcache/infinistore/kvcache_customized.yaml#L42-L89
in this case, you do not need api level change, you can bake the agent container directly.
Pull Request Description
Support prisdb kvcache data plane metrics deployment
Related Issues
Resolves: #[Insert issue number(s)]
Important: Before submitting, please complete the description above and review the checklist below.
Contribution Guidelines (Expand for Details)
We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:
Pull Request Title Format
Your PR title should start with one of these prefixes to indicate the nature of the change:
[Bug]
: Corrections to existing functionality[CI]
: Changes to build process or CI pipeline[Docs]
: Updates or additions to documentation[API]
: Modifications to aibrix's API or interface[CLI]
: Changes or additions to the Command Line Interface[Misc]
: For changes not covered above (use sparingly)Note: For changes spanning multiple categories, use multiple prefixes in order of importance.
Submission Checklist
By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.