Fortio
$ fortio Official Med RiskFortio (fortio) is a fast Go load-testing tool, echo server, and library originally built for Istio. It runs constant-QPS HTTP, HTTPS, gRPC, and TCP stress tests (fortio load) and writes detailed JSON latency histograms via -json - or -json report.json.
brew install fortio Runs calibrated constant-QPS HTTP/gRPC load tests and local echo servers directly from a single Go binary.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -json - for stdout JSON histograms and -quiet / -loglevel controls for headless scripting.
- Supports
-json -(stdout) and-json <file>output
Defaults to bounded 5-second duration (-t 5s) and modest 8 QPS (-qps 8) rather than unconstrained flooding.
- Safe bounded defaults (
-qps 8 -t 5s -c 4) prevent accidental overload
Single static Go binary available via Homebrew, go install, Docker, and GitHub Releases on macOS, Linux, and Windows.
- Zero-dependency binary via
brew install fortioand releases
Covers HTTP/1.1, HTTP/2, gRPC (-grpc), TCP, and built-in fortio server echo/UI in one tiny binary.
- Unified HTTP, gRPC, and TCP load testing plus echo server
Actively maintained official fortio/fortio organization under Apache-2.0 with Istio heritage.
- Active
fortio/fortioreleases and Go module maintenance
Detailed README, fortio help output, and fortio.org reference.
- Documented flags and JSON schema in
fortio/fortiorepo
Security, Auth & Guardrails
Accepts per-run -H headers and TLS cert flags (-cert, -key, -cacert); stores no credentials.
Free, Apache-2.0 open-source Go binary.
# Fortio Agent Rules - Use `-json -` (stdout) or `-json <file>.json` for structured metrics. - Do not start `fortio server` in one-shot agent commands; use bounded `fortio load -t <duration>`. - Keep `-qps` and `-t` conservative against staging or local services.
Agent-Ready Command Recipes
Safe Read-Only Queries
fortio load -qps 50 -t 5s -c 4 -json - http://localhost:8080/health
Generates 50 QPS for 5 seconds and writes the complete JSON histogram result to stdout (-json -).
Controlled Writes & Previews
fortio load -qps 20 -t 5s -c 2 -payload '{"ok":true}' -content-type application/json -json report.json http://localhost:8080/api Sends JSON payloads at 20 QPS and writes structured histogram metrics to report.json.
Strengths for Agents
- + Conservative default
-qps 8 -t 5savoids accidental self-DoS when flags are omitted. - +
-json -streams complete latency percentiles and status counts to stdout.
Caveats & Pitfalls
- ! Non-standard single-dash flag style (
-json,-qps,-content-type) instead of POSIX--flags. - !
fortio serverstarts a persistent daemon process unless usingfortio load.