Skip to content

Conversation

@Fabhiahn
Copy link
Contributor

@Fabhiahn Fabhiahn commented Jul 1, 2025

I added an option to specify priorityClassName for each of the deployments.

Signed-off-by: Fabijan Marič Vild <[email protected]>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @Fabhiahn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new feature that enables users to specify a priorityClassName for deployments within the Helm chart. This allows for better control over pod scheduling and resource allocation based on priority. The changes involve modifying deployment templates, updating the schema, and adding documentation to the values file.

Highlights

  • Feature: Added the ability to specify priorityClassName for deployments, allowing users to define the priority of pods.
  • Deployment Configuration: Modified deployment templates for cache server, router, and vllm-multi to include an optional priorityClassName.
  • Schema Update: Updated the values.schema.json file to include priorityClassName as a valid option.
  • Values Configuration: Updated the values.yaml file to include documentation and a default value for priorityClassName in the router specification.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the functionality to specify a priority class for deployments within the Helm chart. It modifies deployment templates for the cache server, router, and vllm-multi, and updates the values schema and default values to include the new priority class option. The review focuses on ensuring that the implementation is robust and handles cases where the priority class name is not provided.

Comment on lines +46 to +48
{{- if $modelSpec.priorityClassName }}
priorityClassName: {{ $modelSpec.priorityClassName | quote }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider adding a check to ensure $modelSpec.priorityClassName is not empty before quoting it. This prevents adding an empty priorityClassName field to the deployment if the value is not provided.[^1]

{{- if and $modelSpec.priorityClassName (not (empty $modelSpec.priorityClassName)) }}
      priorityClassName: {{ $modelSpec.priorityClassName | quote }}
      {{- end }}

Copy link
Collaborator

@zerofishnoodles zerofishnoodles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YuhanLiu11 YuhanLiu11 merged commit 5975c6d into vllm-project:main Jul 22, 2025
10 checks passed
ikaadil pushed a commit to ikaadil/production-stack that referenced this pull request Jul 26, 2025
Signed-off-by: Fabijan Marič Vild <[email protected]>
Co-authored-by: Yuhan Liu <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
YuhanLiu11 added a commit that referenced this pull request Aug 5, 2025
…concurrency performance (#589)

* feat: update requirements to include aiohttp

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: replace HTTPX with aiohttp for asynchronous client handling

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: replace HTTPXClientWrapper with AiohttpClientWrapper for improved async handling

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: replace HTTPXClientWrapper with AiohttpClientWrapper in lifespan management

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: remove httpx from requirements for aiohttp integration

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* refactor: switch from httpx to aiohttp for asynchronous client handling in service discovery

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: add AiohttpClientWrapper for asynchronous HTTP client handling

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* chore: pin aiohttp version to 3.9.5 in requirements

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* refactor: migrate from httpx to aiohttp for asynchronous HTTP requests in request service

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* refactor: update file upload implementation to use aiohttp for asynchronous requests

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* chore: replace httpx with aiohttp in project dependencies and test requirements

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* chore: format dependencies in pyproject.toml for consistency

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* chore: clean up imports and ensure consistent aiohttp version in requirements

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* fix: update aiohttp client closure method for consistency and accuracy in logging

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* fix: correct status code handling in request processing for improved response accuracy

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* bumping version (#593)

Signed-off-by: YuhanLiu11 <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Added option to specify priority class (#557)

Signed-off-by: Fabijan Marič Vild <[email protected]>
Co-authored-by: Yuhan Liu <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* [CI/Build] Change CI runner to L4 (#595)

* Add env clean up before run

Signed-off-by: Shaoting Feng <[email protected]>

* Delete all pods

Signed-off-by: Shaoting Feng <[email protected]>

* Delete all release

Signed-off-by: Shaoting Feng <[email protected]>

* test ci runner

Signed-off-by: Shaoting <[email protected]>

* test ci runner

Signed-off-by: Shaoting <[email protected]>

* Test again

Signed-off-by: Shaoting Feng <[email protected]>

* Test again

Signed-off-by: Shaoting Feng <[email protected]>

* Change python version from 3.12 to 3.10

Signed-off-by: Shaoting Feng <[email protected]>

* delete get helm

Signed-off-by: Shaoting Feng <[email protected]>

* change back python version

Signed-off-by: Shaoting Feng <[email protected]>

* trigger

Signed-off-by: Shaoting Feng <[email protected]>

* Add cache: pip

Signed-off-by: Shaoting Feng <[email protected]>

* Try check-latest: true

Signed-off-by: Shaoting Feng <[email protected]>

* Changing to 3.10

Signed-off-by: Shaoting Feng <[email protected]>

* change to 3.9

Signed-off-by: Shaoting Feng <[email protected]>

* Specify 3.9.2

Signed-off-by: Shaoting Feng <[email protected]>

* Use conda python

Signed-off-by: Shaoting Feng <[email protected]>

* Fix vllm without conda

Signed-off-by: Shaoting Feng <[email protected]>

---------

Signed-off-by: Shaoting Feng <[email protected]>
Signed-off-by: Shaoting <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* [Bugfix] fix dynamic config (#598)

* [hotfix] fix dynamic config

Signed-off-by: Rui Zhang <[email protected]>

* [Bugfix] Add missing field for reconfiguration

Signed-off-by: Rui Zhang <[email protected]>

---------

Signed-off-by: Rui Zhang <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* [refactor] redesign RST documentation (#592)

* initial reorg

Signed-off-by: Kobe Chen <[email protected]>

* pass CICD

Signed-off-by: Kobe Chen <[email protected]>

* fix

Signed-off-by: Kobe Chen <[email protected]>

* fix

Signed-off-by: Kobe Chen <[email protected]>

* fix: update helm.rst

Signed-off-by: Kobe Chen <[email protected]>

* fix

Signed-off-by: Kobe Chen <[email protected]>

* fix

Signed-off-by: Kobe Chen <[email protected]>

* Sharing KV Cache Across Instances

Signed-off-by: Kobe Chen <[email protected]>

* docker

Signed-off-by: Kobe Chen <[email protected]>

* community meeting

Signed-off-by: Kobe Chen <[email protected]>

* add deployment 3 options

Signed-off-by: Kobe Chen <[email protected]>

* remove A:

Signed-off-by: Kobe Chen <[email protected]>

* docker

Signed-off-by: Kobe Chen <[email protected]>

---------

Signed-off-by: Kobe Chen <[email protected]>
Co-authored-by: Yuhan Liu <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* [Misc] revert uv.lock (#604)

Signed-off-by: Kobe Chen <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* fix: update response content iteration method for improved performance

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Replace httpx with aiohttp for prefill and decode clients in K8sServiceNameServiceDiscovery, updating timeout handling accordingly.

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Update file upload function to include file parameter in aiohttp post request

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Refactor response handling in request service to return JSON data and correctly set response status code in sleep/wakeup routing.

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Add initialization of aiohttp ClientSession in service discovery during app startup

- Implemented  method in , , and  classes to set up aiohttp ClientSession for prefill and decode endpoints.
- Updated  function in  to call  if available, ensuring proper session management during application startup.
- Adjusted logging statements in  to reference the  attribute of the client sessions for accurate logging of routing requests.

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Refactor whitespace and formatting in app.py for improved readability

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

---------

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
Signed-off-by: YuhanLiu11 <[email protected]>
Signed-off-by: Fabijan Marič Vild <[email protected]>
Signed-off-by: Shaoting Feng <[email protected]>
Signed-off-by: Shaoting <[email protected]>
Signed-off-by: Rui Zhang <[email protected]>
Signed-off-by: Kobe Chen <[email protected]>
Co-authored-by: Yuhan Liu <[email protected]>
Co-authored-by: Fabhiahn <[email protected]>
Co-authored-by: Shaoting <[email protected]>
Co-authored-by: Rui Zhang <[email protected]>
Co-authored-by: Kobe Chen <[email protected]>
Senne-Mennes pushed a commit to Senne-Mennes/production-stack that referenced this pull request Oct 22, 2025
Senne-Mennes pushed a commit to Senne-Mennes/production-stack that referenced this pull request Oct 22, 2025
…concurrency performance (vllm-project#589)

* feat: update requirements to include aiohttp

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: replace HTTPX with aiohttp for asynchronous client handling

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: replace HTTPXClientWrapper with AiohttpClientWrapper for improved async handling

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: replace HTTPXClientWrapper with AiohttpClientWrapper in lifespan management

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: remove httpx from requirements for aiohttp integration

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* refactor: switch from httpx to aiohttp for asynchronous client handling in service discovery

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* feat: add AiohttpClientWrapper for asynchronous HTTP client handling

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* chore: pin aiohttp version to 3.9.5 in requirements

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* refactor: migrate from httpx to aiohttp for asynchronous HTTP requests in request service

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* refactor: update file upload implementation to use aiohttp for asynchronous requests

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* chore: replace httpx with aiohttp in project dependencies and test requirements

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* chore: format dependencies in pyproject.toml for consistency

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* chore: clean up imports and ensure consistent aiohttp version in requirements

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* fix: update aiohttp client closure method for consistency and accuracy in logging

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* fix: correct status code handling in request processing for improved response accuracy

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* bumping version (vllm-project#593)

Signed-off-by: YuhanLiu11 <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Added option to specify priority class (vllm-project#557)

Signed-off-by: Fabijan Marič Vild <[email protected]>
Co-authored-by: Yuhan Liu <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* [CI/Build] Change CI runner to L4 (vllm-project#595)

* Add env clean up before run

Signed-off-by: Shaoting Feng <[email protected]>

* Delete all pods

Signed-off-by: Shaoting Feng <[email protected]>

* Delete all release

Signed-off-by: Shaoting Feng <[email protected]>

* test ci runner

Signed-off-by: Shaoting <[email protected]>

* test ci runner

Signed-off-by: Shaoting <[email protected]>

* Test again

Signed-off-by: Shaoting Feng <[email protected]>

* Test again

Signed-off-by: Shaoting Feng <[email protected]>

* Change python version from 3.12 to 3.10

Signed-off-by: Shaoting Feng <[email protected]>

* delete get helm

Signed-off-by: Shaoting Feng <[email protected]>

* change back python version

Signed-off-by: Shaoting Feng <[email protected]>

* trigger

Signed-off-by: Shaoting Feng <[email protected]>

* Add cache: pip

Signed-off-by: Shaoting Feng <[email protected]>

* Try check-latest: true

Signed-off-by: Shaoting Feng <[email protected]>

* Changing to 3.10

Signed-off-by: Shaoting Feng <[email protected]>

* change to 3.9

Signed-off-by: Shaoting Feng <[email protected]>

* Specify 3.9.2

Signed-off-by: Shaoting Feng <[email protected]>

* Use conda python

Signed-off-by: Shaoting Feng <[email protected]>

* Fix vllm without conda

Signed-off-by: Shaoting Feng <[email protected]>

---------

Signed-off-by: Shaoting Feng <[email protected]>
Signed-off-by: Shaoting <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* [Bugfix] fix dynamic config (vllm-project#598)

* [hotfix] fix dynamic config

Signed-off-by: Rui Zhang <[email protected]>

* [Bugfix] Add missing field for reconfiguration

Signed-off-by: Rui Zhang <[email protected]>

---------

Signed-off-by: Rui Zhang <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* [refactor] redesign RST documentation (vllm-project#592)

* initial reorg

Signed-off-by: Kobe Chen <[email protected]>

* pass CICD

Signed-off-by: Kobe Chen <[email protected]>

* fix

Signed-off-by: Kobe Chen <[email protected]>

* fix

Signed-off-by: Kobe Chen <[email protected]>

* fix: update helm.rst

Signed-off-by: Kobe Chen <[email protected]>

* fix

Signed-off-by: Kobe Chen <[email protected]>

* fix

Signed-off-by: Kobe Chen <[email protected]>

* Sharing KV Cache Across Instances

Signed-off-by: Kobe Chen <[email protected]>

* docker

Signed-off-by: Kobe Chen <[email protected]>

* community meeting

Signed-off-by: Kobe Chen <[email protected]>

* add deployment 3 options

Signed-off-by: Kobe Chen <[email protected]>

* remove A:

Signed-off-by: Kobe Chen <[email protected]>

* docker

Signed-off-by: Kobe Chen <[email protected]>

---------

Signed-off-by: Kobe Chen <[email protected]>
Co-authored-by: Yuhan Liu <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* [Misc] revert uv.lock (vllm-project#604)

Signed-off-by: Kobe Chen <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* fix: update response content iteration method for improved performance

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Replace httpx with aiohttp for prefill and decode clients in K8sServiceNameServiceDiscovery, updating timeout handling accordingly.

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Update file upload function to include file parameter in aiohttp post request

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Refactor response handling in request service to return JSON data and correctly set response status code in sleep/wakeup routing.

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Add initialization of aiohttp ClientSession in service discovery during app startup

- Implemented  method in , , and  classes to set up aiohttp ClientSession for prefill and decode endpoints.
- Updated  function in  to call  if available, ensuring proper session management during application startup.
- Adjusted logging statements in  to reference the  attribute of the client sessions for accurate logging of routing requests.

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

* Refactor whitespace and formatting in app.py for improved readability

Signed-off-by: Ifta Khairul Alam Adil <[email protected]>

---------

Signed-off-by: Ifta khairul Alam Adil <[email protected]>
Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
Signed-off-by: YuhanLiu11 <[email protected]>
Signed-off-by: Fabijan Marič Vild <[email protected]>
Signed-off-by: Shaoting Feng <[email protected]>
Signed-off-by: Shaoting <[email protected]>
Signed-off-by: Rui Zhang <[email protected]>
Signed-off-by: Kobe Chen <[email protected]>
Co-authored-by: Yuhan Liu <[email protected]>
Co-authored-by: Fabhiahn <[email protected]>
Co-authored-by: Shaoting <[email protected]>
Co-authored-by: Rui Zhang <[email protected]>
Co-authored-by: Kobe Chen <[email protected]>
Signed-off-by: [email protected] <[email protected]>
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