Добавить генератор нагрузки, сбор метрик реплик и сценарии экспериментов для отказов, rolling update и трека 1

This commit is contained in:
2026-11-02 17:44:59 +03:00
parent c5cdcb3377
commit b2973405f3
30 changed files with 2067 additions and 18 deletions
+19
View File
@@ -165,6 +165,25 @@ services:
# maxmemory 256mb (valkey.conf) plus the server's own overhead.
memory: 320M
# Load generator of the experiments (tools/loadgen). Only
# `docker compose --profile bench run --rm loadgen ...` starts it; it talks to
# the balancer and, for metrics, to the replicas' internal debug port.
loadgen:
profiles: ["bench"]
build:
context: .
target: loadgen
image: mtusi-messenger-loadgen:lab3
volumes:
- ${BENCH_OUT:-./bench-out}:/out
networks:
- edge
deploy:
resources:
limits:
cpus: "${LOADGEN_CPUS:-1.5}"
memory: 512M
volumes:
pgdata:
valkeydata: