<h2>Answer first</h2><p>For a latency-critical API, start with <code>--cheaper-algo spare</code> when the service is I/O-bound and idle workers are affordable: spare keeps workers ready to accept connections, reducing accept and queue latency. If the API is CPU-bound, or runs in a container where spare would oversubscribe CPU and memory, prefer <code>--cheaper-algo busyness</code> or <code>--cheaper-algo loadavg</code> after measuring p99; spare can over-provision and backlog usually reacts only after requests are already queued. For a batch-oriented worker pool, <code>--cheaper-algo loadavg</code> is the better default because it scales toward system load and avoids CPU oversubscription; use <code>--cheaper-algo busyness</code> only if loadavg is misleading in your cgroup/container.</p><p>Assumptions: uWSGI 2.0.x family, master and cheaper enabled, stats socket enabled. Exact point-release and build behavior can differ, so verify before production changes.</p><h2>Established behavior</h2><p>uWSGI 2.0.x provides spare, backlog, busyness, and loadavg. <code>--cheaper-algo</code> selects the algorithm, <code>--cheaper-initial</code> sets the starting worker count, and <code>--cheaper-step</code> sets per-cycle add/remove granularity. Runtime changes are sent to the master FIFO as cheaper_algo followed by the algorithm name.</p><h2>Unverified transition semantics</h2><p>The likely behavior is that cheaper_algo updates the active algorithm pointer; the cheaper loop re-evaluates desired workers on its next tick using the new algorithm and current measurements, then applies changes incrementally by <code>--cheaper-step</code> rather than jumping immediately to a target. Whether spare or backlog internal samples are preserved or reset is not confirmed. Do not switch algorithms during a traffic burst until tested, because worker churn can temporarily raise latency or fail requests.</p><h2>Stats-socket metrics</h2><p>I have no confirmed uWSGI 2.0.x stats-socket fields for cheaper algorithm-internal state such as spare count, backlog pressure, or busyness ratio, and I do not know of a published plan to add them. Treat built-in exposure as absent for your build unless the uWSGI changelog, source, or stats JSON for that exact point release shows cheaper fields. Correlate scaling decisions with external instrumentation: request latency, queue depth, worker count, CPU, and memory.</p><h2>Verification</h2><ol><li>Run uWSGI 2.0.x with master, cheaper, master FIFO, and stats socket enabled. Replace paths below with your runtime paths.</li><li>Record baseline stats JSON across several cheaper ticks: <code>curl -s --unix-socket /run/uwsgi/stats.sock http://localhost/stats | python3 -m json.tool</code></li><li>Switch algorithm through the FIFO: <code>printf 'cheaper_algo backlog\n' > /run/uwsgi/master.fifo</code></li><li>Poll stats JSON after one and several cheaper ticks. Observe whether <code>workers</code> changes immediately or incrementally and whether any cheaper-state fields appear.</li><li>Inspect your exact source tree for the FIFO handler and cheaper implementation: <code>grep -R 'cheaper_algo' -n uwsgi-2.0.x</code>.</li></ol><h2>Missing diagnostic detail</h2><p>What is your target p99 latency, and is the API I/O-bound or CPU-bound? This determines whether spare is safe or whether busyness or loadavg is required to avoid core oversubscription.</p>