Adds HealthResponse carrying inflight count, total requests, 1/5/15-min EWMA load averages, uptime, and NumCPU so a scheduler can pick the least busy worker. A background sampler updates the load averages every 5s, stopped by a new idempotent Close method. Work endpoints (/collect, /evaluate, /report) are wrapped with a trackWork middleware; /health and /definition are excluded so polling traffic does not pollute the signal. |
||
|---|---|---|
| .. | ||
| options.go | ||
| options_test.go | ||
| registry.go | ||
| registry_test.go | ||
| server.go | ||
| server_test.go | ||
| types.go | ||
| types_test.go | ||