Skip to content

Commit 1e3036d

Browse files
Merge branch 'main' into ashar/hybrid-concurrency-detector
2 parents a88cce2 + ae478aa commit 1e3036d

55 files changed

Lines changed: 3385 additions & 2524 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/checkout@v7
6363

6464
- name: Set up Go
65-
uses: actions/setup-go@v6
65+
uses: actions/setup-go@v7
6666
with:
6767
go-version-file: go.mod
6868
cache: true

.github/workflows/ci-pr-checks.yaml

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Matrix jobs (e2e-image-common, e2e-image-router, e2e-router) are each
1+
# Matrix jobs (e2e-image-common, e2e-image-router) are each
22
# followed by a *-status job that aggregates their result, since GitHub
33
# required status checks cannot reference individual matrix legs.
44
name: CI - Test
@@ -64,7 +64,7 @@ jobs:
6464
uses: actions/checkout@v7
6565

6666
- name: Set up Go
67-
uses: actions/setup-go@v6
67+
uses: actions/setup-go@v7
6868
with:
6969
go-version-file: go.mod
7070

@@ -113,6 +113,16 @@ jobs:
113113
GO_BUILD_CACHE_VOL: ${{ steps.go-cache.outputs.build }}
114114
run: make test-unit
115115

116+
# Anti-rot: execute the benchmark bodies once so runtime breakage (panics,
117+
# deadlocks) is caught. `go test` only compiles benchmarks; it never runs
118+
# them without -bench.
119+
- name: Run benchmark smoke
120+
shell: bash
121+
env:
122+
GO_MOD_CACHE_VOL: ${{ steps.go-cache.outputs.mod }}
123+
GO_BUILD_CACHE_VOL: ${{ steps.go-cache.outputs.build }}
124+
run: make bench-smoke
125+
116126
- name: Run hermetic integration tests
117127
shell: bash
118128
env:
@@ -348,29 +358,6 @@ jobs:
348358
if: ${{ needs.check-changes.outputs.src == 'true' }}
349359
runs-on: ubuntu-latest
350360
timeout-minutes: 45
351-
strategy:
352-
fail-fast: false
353-
matrix:
354-
suite:
355-
- name: pd
356-
label-filter: "!Disruptive && !Extended && !SharedStorage && !Metrics"
357-
needs-renderer: "false"
358-
- name: pd-shared-storage-deprecated
359-
label-filter: "SharedStorage && DeprecatedPD"
360-
needs-renderer: "false"
361-
- name: pd-shared-storage-disagg
362-
label-filter: "SharedStorage && Disagg"
363-
needs-renderer: "false"
364-
- name: pd-metrics
365-
label-filter: "Metrics"
366-
needs-renderer: "false"
367-
- name: extended
368-
label-filter: "Extended"
369-
needs-renderer: "true"
370-
- name: disruption
371-
label-filter: "Disruptive"
372-
needs-renderer: "false"
373-
name: e2e-router (${{ matrix.suite.name }})
374361
steps:
375362
- name: Checkout source
376363
uses: actions/checkout@v7
@@ -404,7 +391,6 @@ jobs:
404391
path: ${{ runner.temp }}/e2e-images
405392

406393
- name: Download renderer image
407-
if: ${{ matrix.suite.needs-renderer == 'true' }}
408394
uses: actions/download-artifact@v8
409395
with:
410396
name: e2e-image-renderer
@@ -417,26 +403,11 @@ jobs:
417403
docker load --input "$image"
418404
done
419405
420-
- name: Run e2e-router (${{ matrix.suite.name }})
406+
- name: Run e2e-router
421407
shell: bash
422408
env:
423409
GO_MOD_CACHE_VOL: ${{ steps.e2e-setup.outputs.go-mod-cache }}
424410
GO_BUILD_CACHE_VOL: ${{ steps.e2e-setup.outputs.go-build-cache }}
425-
E2E_LABEL_FILTER: ${{ matrix.suite.label-filter }}
426-
LOAD_VLLM_RENDER_IMAGE: ${{ matrix.suite.needs-renderer }}
427411
PULL_VLLM_RENDER_IMAGE: "false"
428412
HF_TOKEN: ${{ secrets.HF_TOKEN }}
429413
run: make test-e2e-run
430-
431-
e2e-router-status:
432-
needs: e2e-router
433-
if: always()
434-
runs-on: ubuntu-latest
435-
steps:
436-
- name: Check e2e-router result
437-
run: |
438-
result="${{ needs.e2e-router.result }}"
439-
if [[ "$result" != "success" && "$result" != "skipped" ]]; then
440-
echo "::error::e2e-router failed for at least one matrix suite"
441-
exit 1
442-
fi

.github/workflows/ci-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/checkout@v7
6363

6464
- name: Set up Go
65-
uses: actions/setup-go@v6
65+
uses: actions/setup-go@v7
6666
with:
6767
go-version-file: go.mod
6868

.github/workflows/nightly-router-perf-test-optimized-baseline-10k-1k.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ jobs:
6767
HF_TOKEN: ${{ secrets.HF_TOKEN }}
6868
steps:
6969
- name: Checkout llm-d/llm-d-router
70-
uses: actions/checkout@v6
70+
uses: actions/checkout@v7
7171

7272
- name: Checkout kubernetes-sigs/inference-perf
73-
uses: actions/checkout@v6
73+
uses: actions/checkout@v7
7474
with:
7575
repository: kubernetes-sigs/inference-perf
7676
path: inference-perf
7777

7878
- name: Authenticate to Google Cloud
79-
uses: google-github-actions/auth@v2
79+
uses: google-github-actions/auth@v3
8080
with:
8181
credentials_json: ${{ secrets.GKE_SA_KEY }}
8282

8383
- name: Set up gcloud CLI and kubectl
84-
uses: google-github-actions/setup-gcloud@v2
84+
uses: google-github-actions/setup-gcloud@v3
8585
with:
8686
project_id: ${{ env.GCP_PROJECT_ID }}
8787
install_components: 'kubectl,gke-gcloud-auth-plugin'
@@ -97,7 +97,7 @@ jobs:
9797
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
9898
9999
- name: Set up Python
100-
uses: actions/setup-python@v5
100+
uses: actions/setup-python@v7
101101
with:
102102
python-version: "3.10"
103103

@@ -125,7 +125,7 @@ jobs:
125125
--gcs-bucket ${{ env.GCS_BUCKET }}
126126
127127
- name: Upload Performance Results Artifact
128-
uses: actions/upload-artifact@v4
128+
uses: actions/upload-artifact@v7
129129
if: always()
130130
with:
131131
name: epp-perf-results

DEVELOPMENT.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Documentation for developing the llm-d Router.
1111
- [Kind Development Environment](#kind-development-environment)
1212
- [Accessing the Gateway](#accessing-the-gateway)
1313
- [Prometheus Monitoring](#prometheus-monitoring)
14-
- [Grafana Dashboard](#grafana-dashboard)
1514
- [Development Cycle](#development-cycle)
1615
- [Debugging](#debugging)
1716
- [Inference Disaggregation Modes](#inference-disaggregation-modes)
@@ -170,17 +169,10 @@ Prometheus will be accessible at `http://localhost:30090`. To use a different ho
170169
PROM_ENABLED=true KIND_PROM_HOST_PORT=30091 make env-dev-kind
171170
```
172171

173-
### Grafana Dashboard
174-
175-
The bundled [Inference Gateway dashboard] covers EPP metrics across the inference
176-
pool, inference objective, and flow control layers.
177-
178-
Add a Prometheus datasource at `http://localhost:30090`, then import the JSON via
179-
**Dashboards > New > Import**. See the
180-
[Grafana installation docs](https://grafana.com/docs/grafana/latest/setup-grafana/installation/)
181-
for setup.
182-
183-
[Inference Gateway dashboard]:deploy/grafana/inference_gateway.json
172+
Grafana dashboards for the llm-d Router live in the
173+
[llm-d monorepo](https://github.com/llm-d/llm-d/tree/main/guides/recipes/observability/grafana/dashboards).
174+
See [Observability Setup](https://github.com/llm-d/llm-d/blob/main/docs/operations/observability/setup.md)
175+
for install and import instructions.
184176

185177
> [!NOTE]
186178
> For significant customization beyond the standard deployment, use the `deploy/components`

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,14 @@ BUILDER_SOCK_FLAGS = $(DOCKER_GROUP_PARAM) \
119119
-e CONTAINER_RUNTIME=docker
120120
endif
121121

122+
E2E_NUM_PROCS ?= 5
123+
122124
# Env vars forwarded into the e2e test container.
123125
# Add new image vars here so they are automatically passed through.
124126
# Should we pass ALL env vars here?
125127
E2E_ENV_VARS = EPP_IMAGE VLLM_IMAGE SIDECAR_IMAGE VLLM_RENDER_IMAGE \
126128
E2E_KEEP_CLUSTER_ON_FAILURE E2E_PORT E2E_METRICS_PORT K8S_CONTEXT READY_TIMEOUT \
127-
E2E_LABEL_FILTER LOAD_VLLM_RENDER_IMAGE HF_TOKEN
129+
E2E_NUM_PROCS LOAD_VLLM_RENDER_IMAGE HF_TOKEN
128130
BUILDER_E2E_ENV_FLAGS = $(foreach v,$(E2E_ENV_VARS),$(if $($(v)),-e '$(v)=$($(v))'))
129131
ifneq ($(filter command line environment,$(origin NAMESPACE)),)
130132
BUILDER_E2E_ENV_FLAGS += -e NAMESPACE=$(NAMESPACE)
@@ -313,6 +315,11 @@ bench-tokenizer: image-build-builder ## Run external tokenizer + scorer benchmar
313315
@printf "Run 'EXTERNAL_TOKENIZER_ENABLED=true KV_CACHE_ENABLED=true make env-dev-kind' first.\n\n"
314316
$(BUILDER_RUN_CLUSTER) 'go test -bench=. -benchmem -count=5 -timeout=5m ./test/profiling/tokenizerbench/'
315317

318+
.PHONY: bench-smoke
319+
bench-smoke: image-build-builder ## Smoke-run the flowcontrol benchmarks once (-benchtime=1x) to catch runtime rot
320+
@printf "\033[33;1m==== Running Flow Control Benchmark Smoke ====\033[0m\n"
321+
$(BUILDER_RUN) 'go test -run=^$$ -bench=. -benchtime=1x -timeout=5m ./pkg/epp/flowcontrol/benchmark/...'
322+
316323
.PHONY: post-deploy-test
317324
post-deploy-test: ## Run post deployment tests
318325
@echo "Success!"

cmd/epp/runner/runner.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,18 @@ import (
6060
fwkdl "github.com/llm-d/llm-d-router/pkg/epp/framework/interface/datalayer"
6161
fwkplugin "github.com/llm-d/llm-d-router/pkg/epp/framework/interface/plugin"
6262
attrconcurrency "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/attribute/concurrency"
63+
attrgpu "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/attribute/gpu"
6364
attrlatency "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/attribute/latency"
6465
attrmodels "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/attribute/models"
6566
attrprefix "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/attribute/prefix"
6667
attrsession "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/attribute/session"
68+
attrtopology "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/attribute/topology"
6769
discoveryfile "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/discovery/file"
70+
extdcgm "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/extractor/dcgm"
6871
extractormetrics "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/extractor/metrics"
6972
extmodels "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/extractor/models"
73+
exttopology "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/extractor/topology"
74+
srcdcgm "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/source/dcgm"
7075
sourcemetrics "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/source/metrics"
7176
srcmodels "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/source/models"
7277
sourcenotifications "github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/datalayer/source/notifications"
@@ -563,6 +568,11 @@ func (r *Runner) registerInTreePlugins() {
563568
// data layer models source/extractor
564569
fwkplugin.Register(srcmodels.ModelsDataSourceType, srcmodels.ModelDataSourceFactory)
565570
fwkplugin.Register(attrmodels.ModelsExtractorType, extmodels.ModelServerExtractorFactory)
571+
fwkplugin.Register(attrtopology.TopologyExtractorType, exttopology.Factory)
572+
573+
// data layer DCGM source/extractor
574+
fwkplugin.Register(srcdcgm.DCGMDataSourceType, srcdcgm.DCGMDataSourceFactory)
575+
fwkplugin.Register(attrgpu.DCGMExtractorType, extdcgm.DCGMExtractorFactory)
566576

567577
fwkplugin.Register(prefix.PrefixCacheScorerPluginType, prefix.PrefixCachePluginFactory)
568578
fwkplugin.Register(maxscore.MaxScorePickerType, maxscore.MaxScorePickerFactory)

deploy/environments/dev/e2e-infra/envoy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ spec:
299299
port: 8081
300300
protocol: TCP
301301
targetPort: 8081
302-
nodePort: 30080
302+
nodePort: ${ENVOY_NODE_PORT}
303303
selector:
304304
app: envoy
305305
type: NodePort

deploy/environments/dev/e2e-infra/services.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ spec:
3030
protocol: TCP
3131
port: 9090
3232
targetPort: 9090
33-
nodePort: 32090
33+
nodePort: ${METRICS_NODE_PORT}
3434
type: NodePort

0 commit comments

Comments
 (0)