mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-26 22:30:11 +00:00
* feat(loadtest): full-feature mode with recorded-data verification genconfig -features full turns on what both gateways do per request: owners with rpm/tpm/budgets/max_parallel, deployment capacity, the dynamic_rate_limiter_v3, prometheus and s3_v2 callbacks, and the four request hooks with Python stand-ins (custom_callbacks.py). -key-sets gives each gateway its own keys, users and teams in a shared database. verify checks spend logs, owner spend, daily tables, Prometheus counters, S3 logs and the headers the provider received against what loadgen sent, and compares per-deployment prices across sides. s3stub serves S3 for the logs. mockllm takes in= for exact input tokens, returns unique response ids, and counts chosen request headers; loadgen takes -keys and -header. * feat(loadtest): s3stub -max-string keeps long runs' logs in memory
14 lines
654 B
Docker
14 lines
654 B
Docker
# One image with every load-test tool: mockllm, loadgen, genconfig, summarize, procmon, verify, s3stub.
|
|
# docker build -t litellm-loadtest litellm-rust/loadtest
|
|
# docker run litellm-loadtest mockllm -addr :9000
|
|
FROM golang:1.24.7-bookworm@sha256:b8bae5bd9ba9b1f89b635c91c24cc75cea335a16fb5076310f38566fc674b1ec AS build
|
|
WORKDIR /src
|
|
COPY go.mod ./
|
|
COPY cmd ./cmd
|
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/ ./cmd/...
|
|
|
|
FROM gcr.io/distroless/static-debian12:nonroot@sha256:afa5c872c891853ca7fcf1f12c3edb23f7eeef36189728842dd51042ff57f7ab
|
|
COPY --from=build /out/ /usr/local/bin/
|
|
COPY workloads /workloads
|
|
WORKDIR /work
|
|
ENTRYPOINT []
|