Skip to main content

ProbeArgs

Struct ProbeArgs 

Source
pub struct ProbeArgs {
    pub json: bool,
    pub skip_mount: bool,
    pub data_path: Option<PathBuf>,
    pub libtorch_path: Option<PathBuf>,
    pub docker: Option<String>,
}
Expand description

Cluster readiness probe.

Default (single-host): probes the local box for GPU + libtorch arch match + shared-data path + NCCL availability. Cluster context (fdl @cluster probe / FDL_ENV=cluster): probes every host in fdl.cluster.yml via SSH and aggregates the report.

Exit code: 0 when every checked component is green; 1 when any issue was surfaced. fdl deploy and CI consume the --json shape.

Fields§

§json: bool

Emit machine-readable JSON.

§skip_mount: bool

Skip the shared-data-mount visibility check. Useful for single-host setups without a shared filesystem configured.

§data_path: Option<PathBuf>

Override the shared-data path (default: cluster.yml’s per-host data_path:, or the convention default /flodl/data when unset).

§libtorch_path: Option<PathBuf>

Override the libtorch directory. Default walks up from cwd for libtorch/.active. Use this when the libtorch install lives outside the project tree (e.g. a separate virtiofs share mounted at a known path on a worker node).

§docker: Option<String>

Treat NCCL as provided by a Docker image (compose service name from fdl.yml, e.g. cuda). Suppresses host-level NCCL discovery and reports “via Docker image <svc>” instead. In cluster mode, this is auto-derived from each host’s docker: field in fdl.cluster.yml.

Trait Implementations§

Source§

impl Debug for ProbeArgs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FdlArgsTrait for ProbeArgs

Source§

fn try_parse_from(args: &[String]) -> Result<Self, String>

Parse from an explicit argv slice. First element is the program name (ignored), following elements are flags/values/positionals.
Source§

fn schema() -> Schema

Return the JSON schema for this CLI shape.
Source§

fn render_help() -> String

Render --help to a string.
Source§

fn parse() -> Self

Parse argv into Self. Uses std::env::args() by default.
Source§

fn render_help_path(argv: &[String]) -> String

Render --help for a specific argv path (program name first, then the tokens typed). The default ignores the path and returns Self::render_help — correct for a single struct, whose help is context-free. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.