Repository navigation
Plimsoll 0.1.0
First release of Plimsoll. It is also on Maven Central as io.github.hasanyelaldi:plimsoll-cli:0.1.0 (plus plimsoll-core and plimsoll-collectors); it may take a little while to appear there.
java -jar plimsoll.jar analyze path/to/spec-or-repoplimsoll.jar is signed with key CBFEEF57067799F155B117A344F145F2D5D160C1 (plimsoll.jar.asc). SHA-256: 8607c1872d0a24d272984cd9c1b4142e6d05a18bfe6f9696a599cb180aed9c6a.
Read the known limitations before trusting a report.
What's in 0.1.0
First release: static analysis of retry, timeout and amplification settings across a service graph, from a
hand-written spec or from the configuration of a directory of services.
Analysis
- Rules PLM-A1 (amplification, with
UNBOUNDEDfor cycles), PLM-A2a (retry budget exceeds the caller's deadline),
PLM-A2b (abandoned work), PLM-A3 (retry on a non-idempotent edge), PLM-A4 (zero backoff, no jitter) and PLM-A5
(layered retries on one edge or one path) (#2, #3). - Several layers on one edge, outermost first; attempts multiply across layers (#7).
- Alternative edges of one routing decision (
choice): A1 takes the largest within a choice and adds up across choices
(ADR 0012, #48). - An absent timeout is the known value
unlimited, notUNKNOWN(ADR 0011, #38). - PLM-C1: retry, timeout and breaker mechanisms no collector models (Spring Retry, Failsafe, Feign, Hystrix, gRPC,
OkHttp, Apache HttpClient 5, Reactor retry, MicroProfile Fault Tolerance, Spring AI and others) are reported with
file:line, from the patterns inkb/detectors/mechanisms.yaml(#23). - Every value carries its provenance (
EXPLICIT,LIBRARY_DEFAULT,INFERRED,UNKNOWN) and every finding lists the
values it used; a finding that used an unknown value is taggeddepends-on-unknown(ADR 0003).
Collectors
- Resilience4j: Retry and TimeLimiter from
application.ymland annotations, withedges-hint.yamlnaming the callee
of each client method (#5). - Istio:
VirtualServiceretries and timeouts,DestinationRule, and Istio's implicit default retry policy (#6). - Spring Cloud Gateway: routes to
lb://services become edges with theirRetryfilters, response timeouts and
route metadata; the routes of a gateway are one choice;${NAME:default}placeholders in route URIs resolve to
their default (#17, #38, #46, #48). - HTTP clients: Spring Cloud LoadBalancer retries and client timeouts (#8, #38); WebClient, RestClient and RestTemplate
requests to a known service through a@LoadBalancedclient become edges (#37). - Edge idempotency from the HTTP method, per RFC 9110, as a
LIBRARY_DEFAULT(ADR 0008, #20). - Deadline, entry and fanout in collected graphs, from
edges-hint.yaml(ADR 0009, #21). - Several repositories analysed by checking them out side by side under one directory (ADR 0010, #13).
Library semantics
Oracle tests run the real libraries in test scope and pin the behaviour Plimsoll encodes:
- Resilience4j: attempt counting, decorator order, configuration binding, TimeLimiter order (#4, #5).
- Spring Cloud Gateway: Retry attempt counting and defaults, filter order (a CircuitBreaker before Retry wraps all
tries), a TimeLimiter timeout is never retried, response timeouts, first matching route only (#31, #38, #48). - Spring Cloud LoadBalancer: retry counting; exceptions retried for every method, status codes for GET only (#8).
- Spring: duration parsing, annotation order, HTTP client timeouts.
Library defaults are in kb/defaults/, one file per library, each entry with its source and how it was verified.
CLI and report
plimsoll analyze <spec-or-dir>with--max-amp,--fail-onand--format(TEXT,MARKDOWN); exit codes 0, 1,
2 (#2, #35).- A Coverage section (files read per service, layer kinds searched and found per edge, configuration not read) and a
Notes section for collected directories (#23). - Deterministic output: the same input gives a byte-identical report.
- One executable jar,
plimsoll.jar.
Documentation
- README with usage, rules, provenance and known limitations (#60).
- ADRs 0001–0012 in
docs/adr/(#62). - Testbed runs with a hand check of every finding: spring-petclinic-microservices (
findings/petclinic.md, #9) and
TrainTicket (findings/trainticket.md, #28).