starknet_transaction_prover: /health returns 503 when service is saturated#14171
starknet_transaction_prover: /health returns 503 when service is saturated#14171avi-starkware wants to merge 1 commit into
Conversation
PR SummaryMedium Risk Overview A shared Reviewed by Cursor Bugbot for commit e084131. Bugbot is set up for automated code reviews on this repo. Configure here. |
cbd1def to
e503ebd
Compare
318c9c2 to
53381dd
Compare
e503ebd to
db503b7
Compare
d477f5e to
ef3cf0b
Compare
1da27e9 to
ac98d86
Compare
ef3cf0b to
eb8da8d
Compare
…rated Adds `SaturationMonitor` (shared by `ProvingRpcServerImpl` and `HealthLayer`) that tracks whether the concurrency semaphore has been continuously rejecting proving requests. Once that has held for the configured window (`health_max_saturated_ms`, default 10s), `/health` returns 503 with an opaque body so load balancers can drain the pod before in-flight requests start failing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ac98d86 to
e4bbbdc
Compare
eb8da8d to
e084131
Compare

Adds
SaturationMonitor(shared byProvingRpcServerImplandHealthLayer) that tracks whether the concurrency semaphore has beencontinuously rejecting proving requests. Once that has held for the
configured window (
health_max_saturated_ms, default 10s),/healthreturns 503 with an opaque body so load balancers can drain the pod
before in-flight requests start failing.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com