Skip to content

Docs: Adding documentation for ScaleFromZero Feature - #647

Merged
lionelvillard merged 1 commit into
llm-d:mainfrom
dumb0002:readme-scalefromzero
Jan 28, 2026
Merged

Docs: Adding documentation for ScaleFromZero Feature#647
lionelvillard merged 1 commit into
llm-d:mainfrom
dumb0002:readme-scalefromzero

Conversation

@dumb0002

Copy link
Copy Markdown
Collaborator

This PR is extending the WVA user-guide with documentation for the or ScaleFromZero Feature

Copilot AI review requested due to automatic review settings January 27, 2026 14:14
@dumb0002
dumb0002 force-pushed the readme-scalefromzero branch from 5269f20 to 9713d87 Compare January 27, 2026 14:16
@dumb0002 dumb0002 changed the title Adding documentation for ScaleFromZero Feature Docs: Adding documentation for ScaleFromZero Feature Jan 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds comprehensive user-facing documentation for the Scale-From-Zero feature in the Workload-Variant-Autoscaler (WVA). The feature enables automatic scaling of inactive model deployments (with 0 replicas) when there are pending inference requests, helping optimize resource utilization.

Changes:

  • Added new documentation file docs/user-guide/scale-from-zero.md with comprehensive coverage of the Scale-From-Zero feature, including architecture overview, configuration, usage examples, monitoring, and troubleshooting guidance

Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/user-guide/scale-from-zero.md Outdated
name: epp-service
```

4. **Send inference requests** - The Scale-From-Zero engine will automatically detect pending requests and scale up the deployment.

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.

Can we clarify which deployment will be scaled up from multiple deployments available for a single base model?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Right now we are scaling all the deployment associated inactive VA for the same target model. I have on my TODO list to improve this feature to scale only the VA that has the lowest cost.

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.

Maybe explicitly mentioned the same? or link a GitHub issue in the doc

@dumb0002 dumb0002 Jan 27, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I will open a GitHub issue but adding a link to a Git issue or providing details, wouldn't be too much information to include into an user-guide doc? IMO that info is relevant for an admin or an advanced user.

Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment on lines +301 to +307
1. **High concurrent processing load**:

**Solution**: Increase `SCALE_FROM_ZERO_ENGINE_MAX_CONCURRENCY`:
```yaml
env:
- name: SCALE_FROM_ZERO_ENGINE_MAX_CONCURRENCY
value: "50"

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.

What is the relation between high concurrency and slow scale-up from zero?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

If there are several deployments that needs to be scale up from zero, the high concurrency will speed up the process.

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.

ok, this is just the signal to scale up that is faster, clarify the same.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Got it! I added more explanation in the troubleshooting.md clarify the use-case to change the values of this variable. This section is now moved to the file developer-guide/troubleshooting.md.

Comment thread docs/user-guide/scale-from-zero.md Outdated
value: "50"
```

2. **Prometheus query latency**:

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.

Hmm, where do we use prom?, I thought we were doing direct metric scraping

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes! you're right, we are doing a direct metric scraping indeed. Removing that section. Good catch. Thanks!

@asm582 asm582 left a comment

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.

Address review

Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/user-guide/scale-from-zero.md Outdated

| Variable | Description | Default | Valid Range |
|----------|-------------|---------|-------------|
| `SCALE_FROM_ZERO_ENGINE_MAX_CONCURRENCY` | Maximum number of concurrent variant processing operations | `30` | Integer > 0 |

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.

This is an advance feature for the administrator. I would probably move this under an advance section, for administrator.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ok, I will remove from this doc. There aren't enough content in this doc to create a new advance section for administrator.

Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/user-guide/scale-from-zero.md Outdated
Copilot AI review requested due to automatic review settings January 27, 2026 15:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/developer-guide/troubleshooting.md Outdated
Comment thread docs/user-guide/scale-from-zero.md
Copilot AI review requested due to automatic review settings January 27, 2026 15:47
@dumb0002
dumb0002 force-pushed the readme-scalefromzero branch from 2e85f32 to 62666e8 Compare January 27, 2026 15:49
@dumb0002

Copy link
Copy Markdown
Collaborator Author

@lionelvillard @asm582, I addressed all comments above. This PR is ready for another round of review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/developer-guide/troubleshooting.md Outdated

**Solution**: Verify EndpointPicker service is running and metrics are being collected.

4. **No pending requests in queue**:

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.

Can you include the command to query metrics?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's already included: inference_extension_flow_control_queue_size{target_model_name="meta/llama-3.1-8b"}

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.

this is not a CLI command. A curl command is what I meant.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ok, I see! Done


**Possible Causes**:

1. **High concurrent processing load**:

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 would explain when this can happen: when there are many variants that are scaled down to zero.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! Just added this suggested explanation.

value: "50"
```

2. **Inference gateway not receiving requests**:

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.

looks like a generic problem not related to slow scale-up.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but IMO it's important to remind the user to debug it. We both came across this issue during testing our e2e tests.

Comment thread docs/user-guide/scale-from-zero.md Outdated

## Prerequisites

- WVA and llm-d installed and running - deployment options avaiable for [kind](https://github.com/dumb0002/workload-variant-autoscaler/blob/main/deploy/kind-emulator/README.md), [OpenShift](https://github.com/dumb0002/workload-variant-autoscaler/blob/main/deploy/openshift/README.md) and [Kubernetes](https://github.com/dumb0002/workload-variant-autoscaler/blob/main/deploy/kubernetes/README.md)

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.

nit: avaiable -> available

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed. Thanks!

Comment thread docs/user-guide/scale-from-zero.md Outdated
containers:
- name: manager
env:
- name: SCALE_FROM_ZERO_ENGINE_MAX_CONCURRENCY

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.

most admins won't need to change this value. Written like this it gives the impression that this is a required step to go through the guide. So many add a note saying this is an advanced setting and there is no need to change it in most cases.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Ok, I see! I prefer to remove this section instead to avoid any confusion. The use-case for setting this variable is already explained in the troubleshooting.md file.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just removed it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/user-guide/scale-from-zero.md Outdated
Copilot AI review requested due to automatic review settings January 27, 2026 18:36
@dumb0002
dumb0002 force-pushed the readme-scalefromzero branch from 9c1c511 to 1231da3 Compare January 27, 2026 18:38
@dumb0002

Copy link
Copy Markdown
Collaborator Author

@lionelvillard, I finished addressing your latest comments. This PR is ready for another round of review. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/user-guide/scale-from-zero.md Outdated
Comment thread docs/developer-guide/troubleshooting.md
Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/developer-guide/troubleshooting.md Outdated
# Troubleshooting


## ScaleFromZero Guides

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 would remove this as this troubleshooting doc is meant to be guide-agnostic

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sure! Done

Copilot AI review requested due to automatic review settings January 27, 2026 23:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread docs/developer-guide/troubleshooting.md Outdated
Comment thread docs/developer-guide/troubleshooting.md Outdated
Comment thread docs/developer-guide/troubleshooting.md
Comment thread docs/user-guide/scale-from-zero.md
Copilot AI review requested due to automatic review settings January 27, 2026 23:27
@dumb0002
dumb0002 force-pushed the readme-scalefromzero branch from f751c42 to 99b5107 Compare January 27, 2026 23:30
@dumb0002

Copy link
Copy Markdown
Collaborator Author

@lionelvillard, addressed all the latest comment in this PR. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread docs/developer-guide/troubleshooting.md Outdated
Comment thread docs/user-guide/scale-from-zero.md
Comment thread docs/developer-guide/troubleshooting.md Outdated
Comment thread docs/user-guide/scale-from-zero.md
Copilot AI review requested due to automatic review settings January 27, 2026 23:44
@dumb0002
dumb0002 force-pushed the readme-scalefromzero branch from 759bc08 to 9674f93 Compare January 27, 2026 23:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread docs/developer-guide/troubleshooting.md Outdated
@dumb0002
dumb0002 force-pushed the readme-scalefromzero branch 2 times, most recently from 07c5e42 to c0f535a Compare January 28, 2026 00:00
Signed-off-by: Braulio Dumba <Braulio.Dumba@ibm.com>
Copilot AI review requested due to automatic review settings January 28, 2026 15:10
@dumb0002
dumb0002 force-pushed the readme-scalefromzero branch from c0f535a to 4751956 Compare January 28, 2026 15:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@lionelvillard lionelvillard left a comment

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.

LGTM

@asm582 for approval as he added some comments.

@asm582 asm582 left a comment

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.

/lgtm

@lionelvillard
lionelvillard merged commit 4cb1bd2 into llm-d:main Jan 28, 2026
13 checks passed
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.

4 participants