Add kubernetes-deployment: probes, shutdown, JVM ergonomics, HPA

Companion code for "Deploying Spring Boot 4 on Kubernetes: Probes, Graceful
Shutdown, Limits and JVM Ergonomics". A dependency outage under three
probe-group setups, a rolling restart under load four ways (three runs
each), the JVM's ergonomic choices for nine pod shapes, one GC-heavy load
under five CPU limits with throttling counters, and an HPA driven by a
Micrometer gauge through prometheus-adapter. Measured on k3s v1.36.4.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01C3TETMrqVUWeFkNtz3Jbo3
This commit is contained in:
2026-09-11 17:12:10 +00:00
co-authored by Claude Opus 5
parent 644da9e65e
commit a065696478
72 changed files with 28415 additions and 2 deletions
@@ -0,0 +1,37 @@
# HPA orders: target app_inflight_requests averageValue 5, min 1, max 4; scaleDown stabilization 30 s
# load: t=0 2 clients, t=20 30 clients, t=140 0 clients; GET /work?ms=500
t clients metric desired ready pods
0s 2 0 1 1
11s 2 333m 1 1
22s 30 333m 1 1
32s 30 6333m 2 2
43s 30 10333m 4 2
54s 30 10333m 4 4
64s 30 7475m 4 4
75s 30 7416m 4 4
85s 30 7124m 4 4
96s 30 7124m 4 4
106s 30 7083m 4 4
117s 30 7333m 4 4
127s 30 7333m 4 4
138s 30 7583m 4 4
148s 0 6416m 4 4
159s 0 6416m 4 4
169s 0 2499m 4 4
179s 0 0 2 2
190s 0 0 2 2
200s 0 0 1 1
211s 0 0 1 1
221s 0 0 1 1
231s 0 0 1 1
# HPA events:
SuccessfulRescale New size: 2; reason: pods metric app_inflight_requests above target
SuccessfulRescale New size: 4; reason: pods metric app_inflight_requests above target
SuccessfulRescale New size: 2; reason: All metrics below target
SuccessfulRescale New size: 1; reason: All metrics below target
# Load generator summary:
TOTAL {ok=7209}
LATENCY ms p50=503 p90=510 p99=567 max=698 (n=7209)