mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-17 18:25:42 +02:00
[eric] apps: idle pool holds 6 frozen runtimes instead of 3, affordable now that the TTL bounds their lifetime
This commit is contained in:
@@ -25,7 +25,10 @@ FRONTEND_BIND_POLL_INTERVAL = 0.08
|
||||
LOG_BUFFER_LINES = 2000
|
||||
|
||||
# Idle runtimes kept in LRU; trades memory for instant switch-back, beyond 1 because typical users ping-pong 2-3 apps.
|
||||
MAX_IDLE_RUNTIMES = 3
|
||||
# Raised from 3 once the idle TTL landed: the cap used to be the ONLY bound on parked memory, so it
|
||||
# had to be tight; now anything unattended dies at 15 minutes regardless, so the pool can afford to
|
||||
# make instant-reopen cover a realistic handful of apps instead of the last three touched.
|
||||
MAX_IDLE_RUNTIMES = 6
|
||||
# How long a detached runtime may sit frozen in the idle pool before it is fully stopped. Frozen
|
||||
# costs 0% CPU but keeps holding memory and its port; past this nobody is coming back for it soon
|
||||
# and a fresh spawn on the next open is a fair trade for not squatting RAM indefinitely.
|
||||
|
||||
Reference in New Issue
Block a user