# Track 1 overlay: docker compose -p mtusi-lab3-bench -f compose.yaml -f bench/track1/compose.bench.yaml ... # Used only by bench/track1/run.py. A separate project (own volumes, own ports) so the # experiments never touch the main stand's data. Every role is pinned to its own CPU set, # so the load generator, the LB and PostgreSQL do not steal CPU from the API replicas and # the "total API CPU" of a configuration is exactly what the limits say: # k6 0-1 | lb + valkey 2 | postgres 3-4 | api 5-7 (all replicas share these 3 CPUs; per-replica quota API_CPUS) services: postgres: cpuset: "${PG_CPUSET:-3-4}" valkey: cpuset: "${VALKEY_CPUSET:-2}" lb: cpuset: "${LB_CPUSET:-2}" migrate: cpuset: "${API_CPUSET:-5-7}" api: cpuset: "${API_CPUSET:-5-7}" environment: STATS_LOG_SECONDS: "${STATS_LOG_SECONDS:-2}" k6: image: grafana/k6:2.3.0@sha256:9c2dee7f8ed74d317e4027c06a10f169b625638189de8d4555d0b3486a5aeb34 profiles: ["bench"] cpuset: "${K6_CPUSET:-0-1}" networks: [edge] # reaches the LB only, like an external client environment: BASE_URL: http://lb:8080 volumes: - ./bench/track1/k6:/scripts:ro deploy: resources: limits: {cpus: "2.0", memory: 1g}