concurrency

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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) Name

func (*LoadActuator) Name() string

Name implements runtime.Component.

func (*LoadActuator) ShortDescription

func (la *LoadActuator) ShortDescription() string

ShortDescription implements runtime.Component.

func (*LoadActuator) Type

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) Name

func (*Scheduler) Name() string

Name implements runtime.Component.

func (*Scheduler) ShortDescription

func (s *Scheduler) ShortDescription() string

ShortDescription implements runtime.Component.

func (*Scheduler) Type

Type implements runtime.Component.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL