mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +00:00
- Set TCP_NODELAY on accepted sockets; Nagle was holding small SSE chunks for the client's delayed ACK (~40 ms per stream). - Gateway Dockerfile takes LTO / CODEGEN_UNITS build args for faster iteration builds; release defaults are unchanged. - litellm-rust/loadtest: mockllm (OpenAI chat + Anthropic messages, directive-driven timing, per-deployment hits and fault injection), open-loop loadgen with workload files (1 s to 30 min requests, 10k to 1M token contexts, many keys and deployments), genconfig, summarize, procmon, compose file, image build script, and AWS Terraform plus a run script for an out-of-process rig. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0142NUB9q7gotdupNjp63QgB
14 lines
638 B
Docker
14 lines
638 B
Docker
# One image with every load-test tool: mockllm, loadgen, genconfig, summarize, procmon.
|
|
# 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 []
|