Documentation
¶
Overview ¶
Package adaptive implements bounded, request-driven feedback control.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adjustment ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Begin ¶
Begin coordinates the admission decision and measurement generation. There is no capacity wait. Total/background saturation can justify cautious growth.
func (*Controller) End ¶
func (c *Controller) End(priority admission.Priority, generation uint64, now time.Time, elapsed, target time.Duration, failed, canceled bool) *Adjustment
End always releases admitted work, including canceled/stale-generation work. Only current, noncanceled completions contribute feedback. Timings are divided by each handler's configured latency budget before aggregation.