fn: add requests received/handled in Status responses (#1132)

This is useful as additional data to inflight requests.
Callers can determine request arrival and processing
rate.
This commit is contained in:
Tolga Ceylan
2018-07-20 16:00:02 -07:00
committed by GitHub
parent c0bb60fd67
commit db7cbf73e2
5 changed files with 119 additions and 82 deletions

View File

@@ -35,6 +35,8 @@ type MTLSRunnerFactory func(addr, certCommonName string, pki *PKIData) (Runner,
// RunnerStatus is general information on Runner health as returned by Runner::Status() call
type RunnerStatus struct {
ActiveRequestCount int32 // Number of active running requests on Runner
RequestsReceived uint64 // Number of requests received by Runner
RequestsHandled uint64 // Number of requests handled without NACK by Runner
StatusFailed bool // True if Status execution failed
Cached bool // True if Status was provided from cache
StatusId string // Call ID for Status