• Stefy Lanza (nextime / spora )'s avatar
    runpod: optionally give the dearest pod back first (v0.3.12) · d321ad48
    Stefy Lanza (nextime / spora ) authored
    A pool rents at whatever the market offered when each pod was started, so one
    fleet can hold a $0.35 card and a $0.79 card doing identical work. Shedding the
    cheap one saves less than half as much, and which to prefer is the operator's
    call, not ours — hence a checkbox rather than a new default.
    
    With scale_down_costliest_first the dearest surplus pod goes first, tie-broken
    by the idlest and then the coldest cache. Cost decides WHICH pod goes, never
    whether one goes, and a dear pod with requests on it is drained rather than
    dropped — so choosing it costs time, not work. Worth weighing before switching
    on: an on-demand pod costs more than a spot pod, so "dearest first" prefers to
    keep the interruptible ones.
    
    Also fixes the default tie-break, which was inverted when scale-down was
    written: `-last_used` picked the pod used MOST recently, discarding the warmest
    prefix cache of the set. It now retires the coldest.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01PxYHWbCAjjjD7A1rhFKtaW
    d321ad48
Name
Last commit
Last update
..
static Loading commit data...
templates Loading commit data...
__init__.py Loading commit data...
auth.py Loading commit data...
download_worker.py Loading commit data...
routes.py Loading commit data...