• 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
..
test_admin_auth.py Loading commit data...
test_admin_forward_auth.py Loading commit data...
test_admin_remote_ui.py Loading commit data...
test_audio_ml_backends.py Loading commit data...
test_audio_ml_endpoints.py Loading commit data...
test_autoupgrade.py Loading commit data...
test_autoupgrade_sees_training.py Loading commit data...
test_broker_config.py Loading commit data...
test_broker_dispatch.py Loading commit data...
test_broker_protocol.py Loading commit data...
test_broker_streaming.py Loading commit data...
test_burst_placement.py Loading commit data...
test_character_studio_fetch.py Loading commit data...
test_cluster.py Loading commit data...
test_compose.py Loading commit data...
test_forward_auth_peer_trust.py Loading commit data...
test_front_api_auth.py Loading commit data...
test_front_ocr_swap_gate.py Loading commit data...
test_image_has_c_compiler.py Loading commit data...
test_longcat_avatar_layout.py Loading commit data...
test_longcat_bsa.py Loading commit data...
test_longcat_cancellable.py Loading commit data...
test_longcat_checkpoint_resolve.py Loading commit data...
test_longcat_component_quant.py Loading commit data...
test_longcat_config_ui.py Loading commit data...
test_longcat_external_training.py Loading commit data...
test_longcat_int8_load.py Loading commit data...
test_longcat_lora.py Loading commit data...
test_longcat_orchestration.py Loading commit data...
test_longcat_packaging.py Loading commit data...
test_longcat_placement.py Loading commit data...
test_longcat_progress.py Loading commit data...
test_longcat_prompt_cache.py Loading commit data...
test_longcat_quantize.py Loading commit data...
test_longcat_scale.py Loading commit data...
test_longcat_tasks.py Loading commit data...
test_longcat_variants.py Loading commit data...
test_longcat_vendored_source.py Loading commit data...
test_longcat_venv_env.py Loading commit data...
test_longcat_vram_estimate.py Loading commit data...
test_longcat_worker.py Loading commit data...
test_manual_multimodal_test_client.py Loading commit data...
test_model_scan_cache.py Loading commit data...
test_ocr_olmocr.py Loading commit data...
test_ocr_vram_share_and_fallback.py Loading commit data...
test_remote_execution.py Loading commit data...
test_runpod_client_scale.py Loading commit data...
test_runpod_fleet_status.py Loading commit data...
test_runpod_ocr_remotization.py Loading commit data...
test_runpod_schedule_region_spend.py Loading commit data...
test_studio_composed_surfaces.py Loading commit data...
test_surya_runpod_fixes.py Loading commit data...
test_township_api_key.py Loading commit data...
test_township_longcat.py Loading commit data...
test_township_page_js.py Loading commit data...
test_township_templates.py Loading commit data...
test_township_video_dataset.py Loading commit data...
test_upgrade_launcher.py Loading commit data...
test_video_as_b64_scope.py Loading commit data...
test_vllm_share_self_tuning.py Loading commit data...
test_vram_releasers.py Loading commit data...
test_weight_stores.py Loading commit data...
test_whisper_server_local_models.py Loading commit data...