Skip to content

v0.1.7

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 05:45
· 1 commit to main since this release
1caa4ea

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 add fallback = [{ 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 with remote_limits.data_centers = { runpod = [...] }, and remote_limits.us_only = true makes a config error (exit 78) of any data centre in effect for the pool whose ID does not start with US-; 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; 0 turns it off for that pool), is a percentage from 0 to 100 of the PSI full avg60 figure 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 with STARVED <pool> (io pressure: 35.50% full avg60, max 20%). Where the kernel has no PSI the check is skipped with a warning (and a bitc doctor warning), never an error. bitc status shows the pressure beside MemAvailable, and bitc status --json gains an optional io_pressure object. On macOS the key is a config error (exit 78), like a pool's memory. bitc config explain prints host.io_pressure_max (unset when it is not set) (#10).

Changed

  • The one-entry data_center key in [providers.runpod] is now checked like each data_centers entry ([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 includes data_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/locks to 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-run and 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, runpod and sprites, exit 78); only exec plugins run there (behind [host] experimental_remote = true since 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).