* crates/obs (leleka-obs, std only): one event per line (JSON under `leleka run`, key=value on a terminal, the lab's plain lines when a binary is started by hand into a file), UTC ms timestamp, level, component, event, flat fields; prompt/completion text and credentials never appear (key classes + value scrub + registered secrets), per-event token buckets with a `suppressed` count, value and line caps, histogram with Prometheus exposition, size-capped file sink for requests.log. * control-plane: `observe` middleware gives every generation request an id (x-leleka-request-id header) and a session tag (hash of the client's session header); the worker marks engine start / first token / terminal / error on it and one record is written at request end (tokens, cached prefix, queue wait, TTFT, prefill/decode tok/s, finish, error class, engine restart, GPU clock/temp/throttle). All elog! lines go through the log layer (sampled per call site). /metrics?format=prometheus gains request counters and histograms, engine lost/attached counters, uptime and supervisor restarts, PCIe, memory clock, throttle reasons, speculative tokens per round, expert-tier entries by tier and hit ratio. * engine: one structured line per request with the same id (rounds, tokens per round, expert-tier share served from VRAM/PCIe/CPU for that request); telemetry gains spec / expert_tier / last_request; NVML sampler reads PCIe throughput, memory clock, throttle reasons. * supervisor: structured events (engine exit, health, restarts), secrets registered with the log layer, children get LELEKA_REQUEST_LOG, LELEKA_STATUS_FILE, LELEKA_PROFILE and JSON logging; runtime-client and gateway log connect/probe failures as sampled events. * leleka logs (--tail/--since/--level/--component/--source/--request/--follow), leleka report (sanitized support bundle, written only with --yes, nothing sent anywhere), request statistics in leleka status / verify --quick. * generation, sampling and kernels are untouched; the lab scripts keep their plain lines (LELEKA_LOG_FORMAT=legacy or a hand-started binary). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
48 lines
1.5 KiB
TOML
48 lines
1.5 KiB
TOML
[package]
|
|
name = "leleka-deploy"
|
|
version = "0.1.0"
|
|
description = "One-command deployment of the Leleka runtime: preflight, model assets, install, supervision and readiness (no Python)"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lib]
|
|
name = "leleka_deploy"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "leleka"
|
|
path = "src/main.rs"
|
|
|
|
# Test double for the runtime programs; built only for the integration tests (`--features test-fakes`).
|
|
[[bin]]
|
|
name = "leleka-fake-runtime"
|
|
path = "src/bin/fake_runtime.rs"
|
|
required-features = ["test-fakes"]
|
|
|
|
[features]
|
|
test-fakes = []
|
|
|
|
[dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sha2 = "0.11"
|
|
hex = "0.4"
|
|
leleka-obs = { path = "../obs" }
|
|
leleka-model-format = { path = "../model-format" }
|
|
tokio = { version = "1", features = ["rt", "macros", "process", "io-util", "time", "sync", "net", "signal", "fs"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
rustix = { version = "=1.1.5", features = ["fs", "process", "stdio"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_Security_Cryptography", "Win32_Storage_FileSystem", "Win32_System_Threading", "Win32_System_SystemInformation", "Win32_System_Console", "Win32_UI_WindowsAndMessaging"] }
|
|
leleka-memory = { path = "../leleka-memory" }
|
|
|
|
# The workspace forbids unsafe code; this crate denies it and lets exactly one module (`winsys`, Windows only) opt in.
|
|
[lints.rust]
|
|
unsafe_code = "deny"
|
|
|
|
[lints.clippy]
|
|
all = "warn"
|