Move fleet retention and concurrency controls into Settings

Persist settings in SQLite, import legacy environment values once, and apply changes to cleanup and deployment queues without restarting.

Closes #51
This commit is contained in:
2026-09-27 16:11:45 -04:00
parent fc46cb9da4
commit 4fe8613678
20 changed files with 334 additions and 54 deletions
+1 -10
View File
@@ -9,16 +9,7 @@ BETA_ARCHIVE_DIR=/root/zombies/beta-archive
# SQLite location
DB_PATH=/data/cherry.db
# Retention (days) for deployment rows and blob diffs
DEPLOY_KEEP_DAYS=7
# Fleet-wide rolling restart limit, shared by deployments and betas.
# A slot stays occupied until Komodo and RCON confirm recovery.
DEPLOYMENT_RESTART_CONCURRENCY=1
# New-server startup limit, shared by all collections and single-server launches.
# A slot stays occupied through Komodo, RCON, and selected-map verification.
DEPLOYMENT_CREATE_CONCURRENCY=1
# Configure campaign retention and restart/startup concurrency in Settings → Fleet settings.
# Komodo
KOMODO_ADDRESS=https://komodo.example.internal