mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
Adds litellm-rust/loadtest: a mock LLM (OpenAI chat, Anthropic messages, Bedrock invoke with event-stream framing) that takes its timing from the prompt, an open-loop load generator with workloads covering 10k to 1M token contexts, 6 minute non-streaming calls and 30 minute streams, a config and virtual key generator, a summarizer and a /proc sampler, plus Terraform for an AWS rig with load generators, gateway and mocks on separate machines The gateway sets TCP_NODELAY on accepted sockets, removing a ~40 ms stall per streamed response, and its Docker build takes LTO and CODEGEN_UNITS build args for faster iteration builds
17 lines
670 B
HCL
17 lines
670 B
HCL
resource "aws_ecr_repository" "gateway" {
|
|
name = "${var.name}/litellm-rust-gateway"
|
|
force_delete = true
|
|
image_tag_mutability = "MUTABLE"
|
|
}
|
|
|
|
resource "aws_ecr_repository" "tools" {
|
|
name = "${var.name}/litellm-loadtest"
|
|
force_delete = true
|
|
image_tag_mutability = "MUTABLE"
|
|
}
|
|
|
|
locals {
|
|
registry = split("/", aws_ecr_repository.gateway.repository_url)[0]
|
|
gateway_image = var.gateway_image != "" ? var.gateway_image : "${aws_ecr_repository.gateway.repository_url}:${var.image_tag}"
|
|
tools_image = var.tools_image != "" ? var.tools_image : "${aws_ecr_repository.tools.repository_url}:${var.image_tag}"
|
|
}
|