Update /ok to serve dual health check/benchmarking role

This commit is contained in:
2025-09-05 12:39:10 -04:00
parent 761eaa552b
commit e67e4aee17
15 changed files with 265 additions and 53 deletions

View File

@@ -25,3 +25,10 @@ request_id_retention_versions = 100000000
max_buffer_size_bytes = 10485760 # 10MB
# Interval for sending keepalive comments to prevent idle timeouts (seconds)
keepalive_interval_seconds = 30
[benchmark]
# CPU-intensive loop iterations for /ok requests in resolve stage
# 0 = health check only (no CPU work)
# 7000 = default benchmark load (650ns CPU work, 1M req/s)
# Higher values = more CPU stress testing
ok_resolve_iterations = 7000