Repository navigation
This release adds fallback CPU types and ordered data-centre lists for RunPod pods (with a us_only check per pool), and admission that waits while Linux IO pressure is above a set maximum. It also fixes the container orphan sweep, which in 0.1.6 could, rarely, remove a live run's container on Linux while other locks changed.
Added
- RunPod sizes can list fallback CPU types. A
[providers.runpod]size may addfallback = [{ cpu_type = "...", vcpu = N, usd_per_hour = X }, ...](one to four entries, each with its own vcpu and price). When the preferred type has no capacity, the create tries the fallbacks in order; any other error still ends the create. The cap check assumes the dearest type, the ledger books the price of the type that was created, and one stderr line names the size and the type (#8). - RunPod data centres.
data_centers = ["US-TX-3", "US-KS-2"]in[providers.runpod]is an ordered list of one to eight data centres. A create walks it type-major: each CPU type of the size in every data centre in order, one data centre per attempt, moving on only when there is no capacity. A pool can set its own list withremote_limits.data_centers = { runpod = [...] }, andremote_limits.us_only = truemakes a config error (exit 78) of any data centre in effect for the pool whose ID does not start withUS-; it is a check, never a filter (host file only). The stderr note names the data centre when a fallback was used (#7). - IO pressure admission.
io_pressure_max, set under[host]for every pool or in a pool (the pool's value wins;0turns it off for that pool), is a percentage from 0 to 100 of the PSIfull avg60figure in/proc/pressure/io. A run that would be admitted waits in FIFO order while the pressure is above the max, and if its wait ends it exits 75 withSTARVED <pool> (io pressure: 35.50% full avg60, max 20%). Where the kernel has no PSI the check is skipped with a warning (and abitc doctorwarning), never an error.bitc statusshows the pressure besideMemAvailable, andbitc status --jsongains an optionalio_pressureobject. On macOS the key is a config error (exit 78), like a pool'smemory.bitc config explainprintshost.io_pressure_max(unsetwhen it is not set) (#10).
Changed
- The one-entry
data_centerkey in[providers.runpod]is now checked like eachdata_centersentry ([A-Z0-9][A-Z0-9-]{1,31}); a value outside that shape is a config error (exit 78) instead of a create that RunPod refuses. This includesdata_center = "", which used to mean unset: remove the key instead (#7).
Fixed
- The container orphan sweep could remove a live run's container. On Linux, bitc reads
/proc/locksto see whether a run still holds its ticket, and the kernel hands that file out a page at a time, so while other locks come and go one read can miss a held lock. The sweep now removes a container (and a run's cidfile and env file) only while holding the ticket's lock itself, taken without waiting and kept through the removal.bitc status,bitc sweep --dry-runand the legacy-holder view, which only look, read the lock table again until two reads agree, so a held slot no longer shows as free on one bad read (#122).
Known issues
- macOS builds still refuse the built-in remote providers (
ssh,runpodandsprites, exit 78); only exec plugins run there (behind[host] experimental_remote = truesince 0.1.6). macOS as a client to the built-in remote providers (#4) is planned for a later release. - On macOS, bitc never removes the private plugin copies under
<state>/plugins/<type>/bin/, so a copy of each plugin version bitc has run stays there until you delete it. A bitc that is already running when its binary is replaced in place starts the new binary as its plugin shim; restart long-running bitc processes after an upgrade. - Sprites jobs stay refused (exit 78) in this release; enabling them is tracked in #6.
Install
Assets for linux and darwin, amd64 and arm64: bitc_0.1.7_<os>_<arch>.tar.gz (binary, LICENSE, README) and the bare bitc_0.1.7_<os>_<arch>, with sha256 sums in checksums.txt. Check an install with bitc version (expect bitc 0.1.7 (commit 1caa4ea) ... release=true).