Patinas by RustySockets Documentation Product Search public

Patinas User Guide

Copyright 2025 Black Moth Holdings Pty Ltd Author/s: Scott Gemmell

Audience

Engineers and integrators deploying and testing Patinas on edge devices and hubs, via Docker or bare metal.

Prerequisites

Quickstart (Docker)

  1. Build images:
    • docker compose -f deploy/docker/docker-compose.yml build
  2. Start services:
    • docker compose -f deploy/docker/docker-compose.yml up -d
  3. Check health:
    • curl http://localhost:9640/healthz
    • curl http://localhost:9641/healthz
  4. Inspect metrics:
    • curl http://localhost:9640/metrics | head
    • curl http://localhost:9641/metrics | head

Docker Compose runs patinas-proxy and patinas-hub locally, with metrics on ports 9640 and 9641, and patinas-ctl sampling KPIs.

Illustrative diagram, rendered to an image so this page needs no JavaScript.

Configuration

Running workloads

Control CLI (patinas-ctl)

Optional router containers emulate wireless links via tc netem/tbf.

  1. Start with E2E compose overlay (infra):
    • docker compose -f deploy/docker/docker-compose.yml -f deploy/docker/docker-compose.infra.yml up -d --build
    • or multi-hop: docker compose -f deploy/docker/docker-compose.yml -f deploy/docker/docker-compose.multi-hop.yml up -d --build
  2. Apply impairments (both directions):
    • curl -X POST http://localhost:18080/impairments/apply -H "Content-Type: application/json" -d '{"direction":"both","latency_ms":120,"jitter_ms":40,"loss_pct":2.0,"rate_mbit":10}'
  3. Clear impairments:
    • curl -X POST http://localhost:18080/impairments/clear
  4. Use YAML scenarios in tests/e2e/ and collect KPIs with patinas-ctl.

See docs/testing/E2E_TESTS.md for details.

Observability

Troubleshooting

Security notes