A compiled Rust binary managed by Velos with exponential backoff restarts and generous memory limits.
- Process: runs
./target/release/velos-example-servicedirectly (no interpreter) - Unlimited restarts with exponential backoff (500ms, 1s, 2s, 4s, ...)
- Memory guard: restart if RSS exceeds 1 GB
- RUST_BACKTRACE: enabled for crash diagnostics
- Env profiles:
production(warn-level logs) anddevelopment(debug + trace)
# Build the example binary
cargo build --release
# Update velos.toml to point to the binary
# script = "./target/release/velos-example-service"
# Start with Velos
velos start --config velos.toml --env production
# Test the server
curl http://localhost:8080/
curl http://localhost:8080/health
# Check status and resource usage
velos monit
# View logs with smart analysis
velos logs service --analyze- No
interpreterfield means Velos runs the binary directly via fork/exec max_restarts = -1means unlimited — use withexp_backoff_restart_delayto avoid tight restart loopsRUST_BACKTRACE=1gives stack traces on panics, visible invelos logs service- For graceful shutdown, use the
signal-hookortokio::signalcrate in your real app