• Stefy Lanza (nextime / spora )'s avatar
    runpod: let a client lease warm pods up to max_pods (v0.2.93) · 81507a8b
    Stefy Lanza (nextime / spora ) authored
    The autoscaler reacts to load — a pod is added once the least-loaded one
    already has scale_up_inflight_per_pod requests in flight. That is right for
    traffic nobody predicted and wrong for a client that KNOWS what is coming: a
    batch of a thousand documents otherwise discovers the pool one cold start at a
    time.
    
    So a client may now say so: POST /v1/runpod/scale {model, pods}. It is a lease,
    bounded three ways, because a client that can raise the floor can raise the
    bill:
    
      * allow_client_scale, off by default, so no model is client-scalable unless
        someone said so;
      * clamped to max_pods — asking for more returns the ceiling with
        "clamped": true rather than an error, since the client asked for "as many
        as you can" and refusing would leave it with none;
      * client_scale_ttl_s (default 30 min), because the failure that matters is
        not a wrong number, it is a client that asks for four A40s and then dies.
        A lease that never expired would be a bill that never stopped, so a 0 in
        the config falls back to the default instead of meaning "forever".
    
    The lease and a warm-pod schedule are MAXED, never summed: both mean "hold this
    many ready", so a client cannot lower a configured floor and a closed window
    cannot cancel a lease. /v1/runpod/status reports the live lease per model, so an
    unexpected bill has a visible cause.
    
    Not admin-scoped, unlike /v1/runpod/spend: the gate is the per-model flag, not
    the key, and the account's $/hr and spend caps still refuse to provision.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    81507a8b
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...
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...
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...
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...
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...