Before deploying any collector onto production infrastructure, architects and security teams evaluate resource ceilings, fault isolation, data privacy, and deterministic degradation. This page documents Ketos Agent’s production safety guarantees and default limits.
| Dimension |
Guarantee |
Enforcement Mechanism |
| 1. Zero Runtime Dependencies |
No CGO or dynamic library dependencies; no glibc version mismatches |
Static single-binary builds for Linux (amd64/arm64), macOS, and Windows |
| 2. Bounded Memory (Anti-OOM) |
Predictable memory footprint that never grows unbounded over time or traffic spikes |
Metrics, logs, and traces live in fixed-ceiling local memory buffers; internal queues and event lists are strictly bounded |
| 3. Zero Steady-State Disk Writes |
No disk writes while hosts are healthy, protecting SSDs and edge flash storage |
Zero embedded databases (no SQLite or LSM-Tree write amplification); steady-state data is digested in memory |
| 4. Dual Hard Disk Quotas |
Cannot fill the root filesystem regardless of alert frequency |
Enforces both max_disk_mb (default 50MB) and max_snapshots (default 500) globally via FIFO eviction, automatically pruning empty rule directories |
| 5. Fault & Hang Isolation |
A failing collector or hung NFS mount never crashes or stalls the host |
Independent panic recovery and timeouts per collector; filesystem checks include a 3s Stuck Mount guard |
| 6. Power-Loss Safety & Privacy |
Sudden power loss never leaves corrupt half-written files; no hidden data exfiltration |
Atomic temp-file + fsync + rename writes; zero inbound callback ports; --local-only mode available anytime; open-source and auditable |
- Minimal attack surface: Ketos Agent never opens external inbound callback ports. A local listener is opened only when
inputs.apm is explicitly configured (bound to 127.0.0.1 by default for local OTLP ingestion).
- No 99% steady-state exfiltration: Even when connected to Ketos Cloud, routine healthy metrics and logs remain in local memory; outbound encrypted sync occurs only on alert state transitions and incident context generation.
- Self-ingestion loop prevention: Configuration validation automatically blocks
inputs.log_file paths pointing inside storage.dir.
- Instant offline mode: Passing
--local-only completely disables all external network reporting for strict compliance or air-gapped environments.
| Control |
Default Limit |
Scope |
Behavior When Reached |
storage.max_disk_mb |
50 MB |
Global snapshot directory |
Reserves space using the target file’s logical size before writing while protecting any existing file being replaced. Evicts oldest snapshots in FIFO order and removes empty rule directories. If a single file exceeds the quota or cannot coexist with the file it replaces, the write is aborted and historical evidence is preserved. |
storage.max_snapshots |
500 files |
Global snapshot directory |
Evicts oldest snapshots in FIFO order when exceeded. |
| Exclusive directory & recovery |
Single process |
storage.dir |
Each storage directory is owned by a single collector process; on startup, stale temporary files from power loss are cleaned up and quotas are recalibrated. |
| Points per metric window |
256 pre / 256 post |
Per snapshot |
Pre-window keeps the most recent points before trigger; post-window keeps the earliest points after trigger, both emitted chronologically. On graceful shutdown before the post-window completes, observed evidence is saved as status: partial. |
| Setting |
Default |
Scope |
Protection Behavior |
inputs.log_file[].max_line_bytes |
4096 B (4 KiB) |
Per log instance |
Truncates oversized lines; incomplete trailing lines without a newline retain up to max_line_bytes until the next poll and are discarded on rotation or truncation. |
inputs.log_file[].max_lines_per_sec |
5000 lines/s |
Per log instance |
Rate-limits log storms and tracks dropped lines in lines_dropped. |
inputs.log_file[].max_read_bytes_per_poll |
1048576 B (1 MiB) |
Per log instance per poll |
Caps bytes read per poll cycle (including rotation catch-up) to prevent I/O spikes on backlogged files. |
global.apm_max_inflight_requests |
2 |
Shared across all OTLP HTTP/gRPC instances |
Acquired before reading or decoding payloads; returns HTTP 429 or gRPC ResourceExhausted when full. |
inputs.apm[].http_read_timeout |
15s |
Per OTLP/HTTP instance |
Caps total time to read HTTP headers and body, defending against slow clients. |
| Max OTLP message size |
4 MiB |
OTLP receiver |
Rejects oversized single payloads to prevent memory spikes during decoding. |
inputs.apm[].max_priority_mb / max_recent_mb |
4 MB / 2 MB |
Per APM instance |
Independently caps memory for slow/error trace buckets and recent span buckets with rolling eviction. |
[!NOTE]
Changing ingestion budgets (global.apm_max_inflight_requests, http_read_timeout, max_read_bytes_per_poll) or storage settings requires a collector restart. Newly hot-reloaded alert rules begin evaluating missing-data conditions (such as !exists(...)) from their first evaluation cycle.