2 unstable releases
Uses new Rust 2024
| 0.4.0 | Feb 5, 2026 |
|---|---|
| 0.2.0 | Jan 18, 2026 |
#1781 in HTTP server
340KB
7.5K
SLoC
apfsds-daemon
Server daemon for APFSDS (apfsdsd).
Features
- Handler Mode: Client connection handling, authentication, routing
- Exit Mode: Traffic egress to internet
- Raft Cluster: Distributed consensus for HA
- Management API: REST API for administration
- Metrics: Prometheus-compatible endpoint
Installation
cargo install apfsds-daemon
Usage
# Run as handler
apfsdsd --config daemon.toml
# Run as exit node
apfsdsd --config daemon.toml --exit
Configuration
[server]
bind = "0.0.0.0:25347"
mode = "handler"
[raft]
node_id = 1
peers = ["192.168.1.2:25347", "192.168.1.3:25347"]
[storage]
disk_path = "/var/lib/apfsds"
[monitoring]
prometheus_bind = "0.0.0.0:9090"
Endpoints
| Port | Purpose |
|---|---|
| 25347 | Main server (client connections) |
| 25348 | Management API |
| 9090 | Prometheus metrics |
License
MIT
Dependencies
~79–120MB
~2M SLoC