Documentation ¶
Index ¶
- func NewConcurrencyLimiterOptions(concurrencyLimiterProto *policylangv1.ConcurrencyLimiter, ...) (fx.Option, string, error)
- func NewLoadActuatorAndOptions(loadActuatorProto *policylangv1.LoadActuator, componentID string, ...) (runtime.Component, fx.Option, error)
- func NewSchedulerAndOptions(schedulerProto *policylangv1.Scheduler, componentID string, ...) (runtime.Component, fx.Option, error)
- func ParseAIMDConcurrencyController(aimdConcurrencyController *policylangv1.AIMDConcurrencyController) (*policylangv1.NestedCircuit, error)
- type LoadActuator
- func (la *LoadActuator) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)
- func (la *LoadActuator) Execute(inPortReadings runtime.PortToReading, tickInfo runtime.TickInfo) (runtime.PortToReading, error)
- func (*LoadActuator) Name() string
- func (la *LoadActuator) ShortDescription() string
- func (*LoadActuator) Type() runtime.ComponentType
- type Scheduler
- func (s *Scheduler) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)
- func (s *Scheduler) Execute(inPortReadings runtime.PortToReading, tickInfo runtime.TickInfo) (runtime.PortToReading, error)
- func (*Scheduler) Name() string
- func (s *Scheduler) ShortDescription() string
- func (*Scheduler) Type() runtime.ComponentType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConcurrencyLimiterOptions ¶
func NewConcurrencyLimiterOptions( concurrencyLimiterProto *policylangv1.ConcurrencyLimiter, componentStackID string, policyReadAPI iface.Policy, ) (fx.Option, string, error)
NewConcurrencyLimiterOptions creates fx options for ConcurrencyLimiter and also returns the agent group name associated with it.
func NewLoadActuatorAndOptions ¶
func NewLoadActuatorAndOptions( loadActuatorProto *policylangv1.LoadActuator, componentID string, policyReadAPI iface.Policy, agentGroup string, ) (runtime.Component, fx.Option, error)
NewLoadActuatorAndOptions creates load actuator and its fx options.
func NewSchedulerAndOptions ¶
func NewSchedulerAndOptions( schedulerProto *policylangv1.Scheduler, componentID string, policyReadAPI iface.Policy, agentGroupName string, ) (runtime.Component, fx.Option, error)
NewSchedulerAndOptions creates scheduler and its fx options.
func ParseAIMDConcurrencyController ¶
func ParseAIMDConcurrencyController( aimdConcurrencyController *policylangv1.AIMDConcurrencyController, ) (*policylangv1.NestedCircuit, error)
ParseAIMDConcurrencyController parses an AIMD concurrency controller and returns its nested circuit representation.
Types ¶
type LoadActuator ¶
type LoadActuator struct {
// contains filtered or unexported fields
}
LoadActuator struct.
func (*LoadActuator) DynamicConfigUpdate ¶
func (la *LoadActuator) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)
DynamicConfigUpdate finds the dynamic config and syncs the decision to agent.
func (*LoadActuator) Execute ¶
func (la *LoadActuator) Execute(inPortReadings runtime.PortToReading, tickInfo runtime.TickInfo) (runtime.PortToReading, error)
Execute implements runtime.Component.Execute.
func (*LoadActuator) ShortDescription ¶
func (la *LoadActuator) ShortDescription() string
ShortDescription implements runtime.Component.
func (*LoadActuator) Type ¶
func (*LoadActuator) Type() runtime.ComponentType
Type implements runtime.Component.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is part of the concurrency control component stack.
func (*Scheduler) DynamicConfigUpdate ¶
func (s *Scheduler) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)
DynamicConfigUpdate is a no-op for this component.
func (*Scheduler) Execute ¶
func (s *Scheduler) Execute(inPortReadings runtime.PortToReading, tickInfo runtime.TickInfo) (runtime.PortToReading, error)
Execute implements runtime.Component.Execute.
func (*Scheduler) ShortDescription ¶
ShortDescription implements runtime.Component.
func (*Scheduler) Type ¶
func (*Scheduler) Type() runtime.ComponentType
Type implements runtime.Component.