pub struct Host {
pub slice: String,
pub isolation: Isolation,
pub allow_unsafe: bool,
pub poll_interval: Duration,
pub admission: Admission,
pub cpu_overcommit: Option<f64>,
pub memory_ceiling: Option<ByteSize>,
pub pooled_count: bool,
pub skip_syncs: bool,
pub sysbox_probe_profile: Option<String>,
}Expand description
[host]: where runner containers run and how they are isolated.
Fields§
§slice: StringThe systemd slice every runner container is placed in; its MemoryMax is the budget.
isolation: IsolationHow runner containers are kept from the host.
allow_unsafe: boolMust be set for isolation = "unsafe-dind", so a copied config cannot turn it on silently.
poll_interval: DurationHow often GitHub is asked for queued jobs.
admission: AdmissionWhat a runner must fit in before it starts. Default measured (ADR 0138).
cpu_overcommit: Option<f64>Set, a runner also starts only when its predicted CPU fits the slice’s CPUs times this; absent, CPU is not admitted.
memory_ceiling: Option<ByteSize>Set, the most memory the host can grow to, for a VM whose hypervisor adds memory as the guest asks for it:
admission counts what it can still grow by past MemTotal as available, and keeps the margin of this
(ADR 0084). Absent, or not above MemTotal, the host is the memory it has now.
pooled_count: boolUnder measured admission, whether MemoryMax and the host’s limit count what runs uses and keep room for its
growth (ADR 0099, 0108, 0130) rather than every runner’s worst case. Default on; off, both add every runner’s
take, the way back if a host meets what the count did not foresee.
skip_syncs: boolWhether runners whose image carries runnerd-skip-syncs are asked to answer fsync and the other sync calls
without syncing (ADR 0141). Default on: what a runner writes is a cache or goes with its container, and a host
crash empties those caches. A runner of an image without it keeps its syncs whatever this says. A reload
applies it from the next runner on.
sysbox_probe_profile: Option<String>One Sysbox profile to probe after its runners exit (ADR 0155). Absent by default; ignored under unsafe-dind.
Implementations§
Source§impl Host
impl Host
Sourcepub fn syncs_check(
&self,
images: &BTreeMap<String, ImageSyncs>,
boots: PastBoots,
) -> Check
pub fn syncs_check( &self, images: &BTreeMap<String, ImageSyncs>, boots: PastBoots, ) -> Check
Doctor’s word on whether runners sync what they write, from what each profile’s image carries (images, by
reference) and whether the journal shows how past boots ended (boots). For information, unless a crash guard
that cannot read the journal empties the caches after every boot.