Skip to content

feat: add support for new field prefill.servicePort - #200

Closed
zdtsw wants to merge 1 commit into
llm-d-incubation:mainfrom
zdtsw:chore_1_2
Closed

feat: add support for new field prefill.servicePort#200
zdtsw wants to merge 1 commit into
llm-d-incubation:mainfrom
zdtsw:chore_1_2

Conversation

@zdtsw

@zdtsw zdtsw commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

changes

  • to support prefill use a different port than decode's port
  • if prefill.servicePort is not set, fall back to use routing.servicePort
  • if both prefill.servicePort and prefill.container.ports are set, servicePort take precedence to be containerPorts

- to support prefill use a different port than decode's port
- if prefill.servicePort is not set, fall back to use
  routing.servicePort
- if both prefill.servicePort and prefill.container.ports are set,
  servicePort take precedence to be containerPorts

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
prefill:
create: true
replicas: 1
servicePort: 8300 # External service port (prefill pod recieves requests here)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm actually wondering about this setup. @kalantar also had the same question. This would produce these args in the sidecar: --port 8000 --vllm-port 8200, right? But how does the routing sidecar know that prefill port is at 8300? Is the sidecar communicating between prefill and decode, or is the EPP doing so?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I asked around and now realize my original idea to create 2 infpool which supports different port respectively wont work with only 1 EPP. 😢
so in this case, yes, seems this is the limitation for the current design that we must have the same port for prefill and decode ,thus to add this support in modelservice is not really useful.

i am going to close this PR , thanks for the review and all the good discussions 🙏

@zdtsw zdtsw closed this Jan 30, 2026
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.

2 participants