• Stefy Lanza (nextime / spora )'s avatar
    a request could ask for a warm floor but not for a ceiling (v0.4.33) · d6b35d18
    Stefy Lanza (nextime / spora ) authored
    /v1/runpod/scale set a FLOOR. "Give me 8 pods" meant "hold at least 8
    ready", and the autoscaler stayed free to grow the pool to the configured
    max_pods for as long as work kept arriving. A client running a staged
    batch -- 8 pods for the first stage, 32 for the next -- had no way to
    bound a stage at all, and nothing in the reply said so.
    
    Observed 2026-10-18: a run that asked for 8 pods was at 13 and climbing
    toward 128. Every pod past the plan is ~700s of paid boot producing
    nothing, which is why the realised cost per page came out 16.5x the
    measured baseline while every component behaved exactly as written.
    
    A lease may now also carry `max_pods`, under the same rule `gpu_types`
    already follows there: it may only ever NARROW the operator's ceiling, a
    larger number is clamped and reported in `notes`, and it dies with the
    lease. `pods: 0` with a `max_pods` is a cap with no floor -- what a
    client with a long tail of work wants; `pods: 0` alone releases both.
    
    The ceiling has to be read by EVERY path that decides whether to rent,
    or it is a race between the grower that honours it and the one that does
    not: _pods_for_demand, _grow_reason, _pods_needed and the warm-floor
    top-up all now read effective_max_pods(). A leased floor is clamped to
    it too, since a floor above a ceiling is a fleet that oscillates for as
    long as the lease lasts. A configured max_pods of 0 still means zero --
    that is the operator having turned renting off, not a lease.
    
    22 tests, including a guard that no growth path reads mcfg.max_pods
    directly, so a path added later cannot silently escape every cap.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01KnfkxBpcZ1v6ypRFFyhrVM
    d6b35d18
Name
Last commit
Last update
..
__init__.py Loading commit data...
_film_net.py Loading commit data...
_rife_ifnet.py Loading commit data...
app.py Loading commit data...
archive.py Loading commit data...
audio_backends.py Loading commit data...
audio_clean.py Loading commit data...
audio_gen.py Loading commit data...
audio_stems.py Loading commit data...
audiocraft_worker.py Loading commit data...
canary_worker.py Loading commit data...
characters.py Loading commit data...
chunking.py Loading commit data...
colibri_worker.py Loading commit data...
compose.py Loading commit data...
crisperwhisper_worker.py Loading commit data...
custom_pipelines.py Loading commit data...
diarization.py Loading commit data...
ds4_kv_janitor.py Loading commit data...
ds4_worker.py Loading commit data...
embeddings.py Loading commit data...
environments.py Loading commit data...
faceswap.py Loading commit data...
fastlog.py Loading commit data...
h3_worker.py Loading commit data...
host_worker.py Loading commit data...
hub_compat.py Loading commit data...
images.py Loading commit data...
k3_worker.py Loading commit data...
kt_worker.py Loading commit data...
lipsync.py Loading commit data...
log.py Loading commit data...
longcat_worker.py Loading commit data...
loop_watch.py Loading commit data...
lora_archs.py Loading commit data...
loras.py Loading commit data...
melotts_worker.py Loading commit data...
model_test.py Loading commit data...
models_transfer.py Loading commit data...
mux_remote.py Loading commit data...
ocr.py Loading commit data...
parler_worker.py Loading commit data...
pipelines.py Loading commit data...
pod_http.py Loading commit data...
pod_tls.py Loading commit data...
podlog.py Loading commit data...
prompt_cache.py Loading commit data...
pyannote_worker.py Loading commit data...
ratelimit.py Loading commit data...
remote_gateway.py Loading commit data...
rerank.py Loading commit data...
runpod_client.py Loading commit data...
runpod_ledger.py Loading commit data...
runpod_worker.py Loading commit data...
spatial.py Loading commit data...
speaker_embeddings.py Loading commit data...
speaker_registry.py Loading commit data...
state.py Loading commit data...
stt_backends.py Loading commit data...
text.py Loading commit data...
thread_pool.py Loading commit data...
transcriptions.py Loading commit data...
tts.py Loading commit data...
tts_backends.py Loading commit data...
uploads.py Loading commit data...
urlutils.py Loading commit data...
video.py Loading commit data...
vllm_worker.py Loading commit data...
voice_clone.py Loading commit data...
voice_convert.py Loading commit data...
vpr_salad_server.py Loading commit data...
xtts_worker.py Loading commit data...