MCPcopy Create free account
hub / github.com/InferCore/InferCore / recordTimeoutSpike

Method recordTimeoutSpike

internal/server/server.go:852–861  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

850}
851
852func (s *Server) recordTimeoutSpike() {
853 s.timeoutSpikeMu.Lock()
854 defer s.timeoutSpikeMu.Unlock()
855 now := time.Now()
856 if now.Sub(s.timeoutSpikeWin) > time.Minute {
857 s.timeoutSpikeWin = now
858 s.timeoutSpikeCnt = 0
859 }
860 s.timeoutSpikeCnt++
861}
862
863func (s *Server) timeoutSpikeActive() bool {
864 s.timeoutSpikeMu.Lock()

Callers 1

noteTimeoutForScalingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected