forked from mtusi2026/mtusi2026lab4
Run the reconciler as a one-off service of the stand
The reconciler service under the reconcile profile runs the API image with the reconciler module as entrypoint and --dry-run as the default command, so docker compose run --rm --no-deps reconciler takes only flags. It gets the database URL and the limited API key of S3, which already allows listing, reading and deleting objects, a read-only root, 1 CPU and 256 MiB, and a longer S3 read timeout for listing pages. S3, PostgreSQL and the reconciler accept an optional cpuset from the environment so measurements can pin them; the default is no pinning. make reconcile ARGS=... runs a pass, make reconcile-demo and make reconcile-cost drive the track experiments, and the limits policy now covers the new service. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
91731fd317
commit
51fa19a8ee
@@ -50,3 +50,11 @@ UPLOAD_SWEEP_INTERVAL_SECONDS=30
|
||||
UPLOAD_SWEEP_BATCH=100
|
||||
# Fixed glibc mmap threshold for the API: buffers above 128 KiB are returned to the system on free.
|
||||
MALLOC_MMAP_THRESHOLD_=131072
|
||||
# Solution-specific for lab4 track 2: limits of the one-off reconciler (profile reconcile), its S3
|
||||
# read timeout for listing pages, and optional CPU pinning of the measured services (empty = no pinning).
|
||||
RECONCILE_CPUS=1
|
||||
RECONCILE_MEMORY=256m
|
||||
RECONCILE_S3_READ_TIMEOUT_SECONDS=10
|
||||
RECONCILE_CPUSET=
|
||||
S3_CPUSET=
|
||||
PG_CPUSET=
|
||||
|
||||
Reference in New Issue
Block a user