keepalive: TTS warm ping every 30 min (measured, halves warm cost)

Idle sweep 2026-11-28 (5/10/15/20/30/45/60 min gaps through the live gateway): warm latency 0.38-0.99s through 45 minutes, no cold-start cliff, so the 15-minute ping was paying $5.76/mo for warmth already present. 30 min halves it to ~$2.88/mo and stays inside the proven-warm window; the 60-min trial was contaminated by member voice traffic at 34 min true idle, so 30 is the conservative bound. Comments in start.sh and README record why, so the interval is not 'tidied' back to 15.
This commit is contained in:
inference-admin committed 2026-11-28 16:56:33 +00:00
1 parent 61964cd217
commit 24dbd313cf
3 files changed
+24 -12

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
so voice mode doesn't pay the ~24s cold-start after idle.
Runs INSIDE the gateway container, invoked by the keep-alive loop in
start.sh (every 15 min; the Cloudron scheduler task was removed
start.sh (every 30 min; the Cloudron scheduler task was removed
2026-11-09 so the loop is the only warm path). TTS-only (STT pings cost
$0.01/request each; TTS $0.002 — see docs, keep-alive economics). Silent on
success; prints + exits non-zero on failure so keepalive.log captures it.
@@ -28,7 +28,7 @@ def _read(path):
def warn_once(msg):
"""keepalive.log must only grow on failures; a standing config warning would
repeat every 15 min. Note it once per container generation instead."""
repeat every 30 min. Note it once per container generation instead."""
marker = "/app/data/.keepalive_warned"
if os.path.exists(marker):
return