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

Method RecordFallback

internal/slo/memory_engine.go:71–77  ·  view source on GitHub ↗
(requestID string, _ string)

Source from the content-addressed store, hash-verified

69}
70
71func (e *MemoryEngine) RecordFallback(requestID string, _ string) {
72 e.mu.Lock()
73 defer e.mu.Unlock()
74 rec := e.ensureRecord(requestID)
75 rec.fallback = true
76 e.evictLocked()
77}
78
79// ScalingAggregates derives rolling ratios from completed in-memory records for autoscaler hints.
80// ttftRatio compares mean TTFT in the newer half vs the older half (by completion time); 1.0 means no skew.

Calls 2

ensureRecordMethod · 0.95
evictLockedMethod · 0.95

Tested by 1