Plimsoll

Every ship has a Plimsoll line.

Your service graph should too.

Plimsoll reads the retry, timeout and circuit-breaker settings of your services from real configuration (Java code, Spring YAML, Istio manifests), builds the call graph, and shows where they go past safe limits.

Install Plimsoll Read the source

Retries multiply

Each service in this checkout flow retries three times. Looked at one at a time, every setting is reasonable. When the last service is down, the tries multiply along the chain, and one request at the entry becomes a flood at the bottom.

Requests per entry request in the checkout example gateway calls orders, orders calls payments, payments calls ledger, and each hop retries three times. The columns show how many requests reach each service when every try fails, against the amplification limit. ×1 gateway ×3 orders ×9 payments ×27 ledger limit ×10
The columns are the A1 amplification of examples/checkout.yaml, as the report below prints it: an upper bound, with every try failing. A test keeps the chart and the report identical to the tool's output.

From configuration to evidence

Every number in a report is computed by deterministic code. Every value it used says where it came from: file:line in your configuration, or the library documentation for a default. Reports are meant to be attached to architecture decision records.

plimsoll analyze examples/checkout.yaml
Plimsoll analysis of checkout.yaml

Amplification per service (limit 10)
  gateway   ×1
  ledger    ×27
  orders    ×3
  payments  ×9

Findings
  ERROR  PLM-A1   ledger  ×27 (orders ×3, payments ×9), limit 10
          gateway→orders layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:9 (maxAttempts)]
          orders→payments layer 1 (istio) totalAttempts = 3 [EXPLICIT: checkout.yaml:11 (attempts 2 + 1)]
          payments→ledger layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:13 (maxAttempts)]
  ERROR  PLM-A3   orders→payments  non-idempotent call retried, 3 tries
          orders→payments idempotent = false [EXPLICIT: checkout.yaml:10]
          orders→payments layer 1 (istio) totalAttempts = 3 [EXPLICIT: checkout.yaml:11 (attempts 2 + 1)]
  WARN   PLM-A2a  gateway→orders  budget 3.2 s > deadline 3 s, 2 of 3 tries fit
          gateway→orders layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:9 (maxAttempts)]
          gateway→orders layer 1 (resilience4j) perTryTimeout = 1 s [EXPLICIT: checkout.yaml:9]
          gateway→orders layer 1 (resilience4j) backoff = 100 ms [EXPLICIT: checkout.yaml:9]
          gateway→orders layer 1 (resilience4j) multiplier = 1.0 [EXPLICIT: 'multiplier' absent (checkout.yaml:9), spec default 1.0 (fixed backoff)]
          gateway→orders layer 1 (resilience4j) maxBackoff = UNKNOWN [UNKNOWN: 'maxBackoff' absent (checkout.yaml:9)]
          gateway deadline = 3 s [EXPLICIT: checkout.yaml:3]
  WARN   PLM-A2a  orders→payments  budget 2.45 s > deadline 2 s, 2 of 3 tries fit
          orders→payments layer 1 (istio) totalAttempts = 3 [EXPLICIT: checkout.yaml:11 (attempts 2 + 1)]
          orders→payments layer 1 (istio) perTryTimeout = 800 ms [EXPLICIT: checkout.yaml:11]
          orders→payments layer 1 (istio) backoff = 25 ms [EXPLICIT: checkout.yaml:11]
          orders→payments layer 1 (istio) multiplier = 1.0 [EXPLICIT: 'multiplier' absent (checkout.yaml:11), spec default 1.0 (fixed backoff)]
          orders→payments layer 1 (istio) maxBackoff = UNKNOWN [UNKNOWN: 'maxBackoff' absent (checkout.yaml:11)]
          orders deadline = 2 s [EXPLICIT: checkout.yaml:4]
  WARN   PLM-A2b  gateway→orders  callee deadline 2 s > per-try 1 s
          orders deadline = 2 s [EXPLICIT: checkout.yaml:4]
          gateway→orders layer 1 (resilience4j) perTryTimeout = 1 s [EXPLICIT: checkout.yaml:9]
          gateway→orders layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:9 (maxAttempts)]
  WARN   PLM-A2b  orders→payments  callee deadline 2 s > per-try 800 ms
          payments deadline = 2 s [EXPLICIT: checkout.yaml:5]
          orders→payments layer 1 (istio) perTryTimeout = 800 ms [EXPLICIT: checkout.yaml:11]
          orders→payments layer 1 (istio) totalAttempts = 3 [EXPLICIT: checkout.yaml:11 (attempts 2 + 1)]
  WARN   PLM-A2b  payments→ledger  callee deadline 500 ms > per-try 300 ms
          ledger deadline = 500 ms [EXPLICIT: checkout.yaml:6]
          payments→ledger layer 1 (resilience4j) perTryTimeout = 300 ms [EXPLICIT: checkout.yaml:13]
          payments→ledger layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:13 (maxAttempts)]
  WARN   PLM-A4   payments→ledger  zero backoff
          payments→ledger layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:13 (maxAttempts)]
          payments→ledger layer 1 (resilience4j) backoff = 0 ms [EXPLICIT: checkout.yaml:13]
  WARN   PLM-A5   gateway→orders→payments→ledger  retries on 3 edges of one path
          gateway→orders layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:9 (maxAttempts)]
          orders→payments layer 1 (istio) totalAttempts = 3 [EXPLICIT: checkout.yaml:11 (attempts 2 + 1)]
          payments→ledger layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:13 (maxAttempts)]
  INFO   PLM-A4   gateway→orders  no jitter
          gateway→orders layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:9 (maxAttempts)]
          gateway→orders layer 1 (resilience4j) jitter = false [EXPLICIT: checkout.yaml:9]
  INFO   PLM-A4   payments→ledger  no jitter
          payments→ledger layer 1 (resilience4j) totalAttempts = 3 [EXPLICIT: checkout.yaml:13 (maxAttempts)]
          payments→ledger layer 1 (resilience4j) jitter = false [EXPLICIT: checkout.yaml:13]

Coverage
  Source: hand-written spec; every layer is taken as written, nothing was collected

Summary: 2 error, 7 warn, 2 info

What it checks

Seven rules, each finding listing the values it used and their source.

A1 Amplification
Requests one entry request can cause at each service, if every try fails. Attempts multiply along a path and add up across paths; of alternative routes, the largest counts. A cycle is unbounded.
A2a Retry budget
All tries and backoffs of a call against the caller's deadline, and how many tries actually fit.
A2b Abandoned work
The callee may work longer than the caller waits for one try, so it keeps working after the caller gave up.
A3 Non-idempotent retry
A call that is not idempotent, such as a POST, is retried.
A4 Backoff hygiene
Retries with zero backoff, or without jitter.
A5 Layered retries
One call retried by several layers, or one path with retries on several calls.
C1 Not modelled
A retry, timeout or breaker mechanism found in the code that Plimsoll does not model yet, named with file:line.

Read from real configuration

Point it at a directory of services and it collects:

  • Resilience4j retries and time limiters, from application.yml and annotations
  • Spring Cloud Gateway routes, Retry filters and response timeouts
  • HTTP clients: WebClient, RestClient and RestTemplate calls through Spring Cloud LoadBalancer
  • Istio VirtualService and DestinationRule, including Istio's implicit default retries

Whatever it could not read is listed in the report's Coverage section.

Checked against the real libraries

Libraries count differently: Resilience4j's maxAttempts includes the first call, Istio's attempts does not. Plimsoll turns every layer into total attempts, and oracle tests run the real libraries to confirm each behaviour it relies on.

A default without a sourced entry in its knowledge base is reported as UNKNOWN, never guessed.

Install

Plimsoll needs Java 21. Download the jar from the latest release or from Maven Central, and point it at a spec file or a repository:

curl -fLo plimsoll.jar https://repo1.maven.org/maven2/io/github/hasanyelaldi/plimsoll-cli/0.2.0/plimsoll-cli-0.2.0.jar
java -jar plimsoll.jar analyze path/to/spec-or-repo

It exits with 1 when a finding reaches --fail-on (ERROR by default), so it can gate a build. Read the known limitations before you trust a report.

Tried on real systems

Each run is pinned to a commit, and every finding is checked by hand: spring-petclinic-microservices and TrainTicket.