Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xuanjinlong
Copy link

@Xuanjinlong Xuanjinlong commented May 30, 2025

Pull Request Description

Support prisdb kvcache data plane metrics deployment

  • We added a new container to the original cluster pod to deploy the hpkv monitor agent component and expose port 2112 for prometus to pull metrics information.

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

  • PR title includes appropriate prefix(es)
  • Changes are clearly explained in the PR description
  • New and existing tests pass successfully
  • Code adheres to project style and best practices
  • Documentation updated to reflect changes (if applicable)
  • Thorough testing completed, no regressions introduced

By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.

@Xuanjinlong Xuanjinlong force-pushed the Xuanjinlong/feat/add-kvcache-metrics branch from 232a7b2 to 6d13308 Compare May 30, 2025 09:12
@@ -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),
Copy link
Contributor

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? 🤔

@Jeffwan
Copy link
Collaborator

Jeffwan commented May 30, 2025

I will take a review this week


// kvcache hpkv monitor agent for member registration
// +kubebuilder:validation:Optional
HpkvMonitorAgent *RuntimeSpec `json:"hpkvmonitoragent,omitempty"`
Copy link
Collaborator

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,
Copy link
Collaborator

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.

Copy link
Collaborator

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.

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.

3 participants