Files
core2026/tools/load-tests/compose.capacity.yml
T
Hide_D efb7be3cb9 feat: 다중 프로필 DB 부하 계측을 추가
production 턴 런타임의 lease, flush, outbox와 Redis 발행을 한 달 단위로 측정한다. nya와 pya 1분 프로필의 격리 fixture 및 현재 process·잠금 경계 문서를 함께 추가한다.
2026-08-17 15:43:14 +00:00

43 lines
1.2 KiB
YAML

name: ${CAPACITY_COMPOSE_PROJECT_NAME:-sammo-capacity-fixture}
services:
postgres:
image: postgres:18.4-bookworm
environment:
POSTGRES_DB: sammo_capacity
POSTGRES_USER: sammo_capacity
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
secrets:
- postgres_password
ports:
- "127.0.0.1:${CAPACITY_POSTGRES_PORT:-15442}:5432"
volumes:
# PostgreSQL 18 declares the versioned data directory below this root.
- capacity_postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sammo_capacity -d sammo_capacity"]
interval: 2s
timeout: 3s
retries: 30
restart: "no"
redis:
image: redis:8.2.7-bookworm
command: ["redis-server", "--save", "", "--appendonly", "no", "--databases", "16"]
ports:
- "127.0.0.1:${CAPACITY_REDIS_PORT:-16379}:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 3s
retries: 30
restart: "no"
secrets:
postgres_password:
file: ./secrets/postgres-password.txt
volumes:
capacity_postgres_data:
name: ${CAPACITY_POSTGRES_VOLUME_NAME:-sammo_capacity_fixture_postgres_data}