package
0.0.0-20250227074154-20a2e6d4cc71
Repository: https://github.com/buildbarn/bb-remote-execution.git
Documentation: pkg.go.dev

# Functions

NewActionTimeoutExtractor creates a new ActionTimeoutExtractor using the parameters provided.
NewAnalyzerFromConfiguration creates a new initial size class analyzer based on options provided in a configuration file.
NewFallbackAnalyzer creates a simple Analyzer that runs all actions on the smallest size class.
NewFeedbackDrivenAnalyzer creates an Analyzer that selects the initial size class on which actions are run by reading previous execution stats from the Initial Size Class Cache (ISCC) and analyzing these results.
NewOutcomes creates a new Outcomes object that contains samples for successful and failed executions based on the arguments provided.
NewPageRankStrategyCalculator creates a StrategyCalculator that uses outcomes of previous executions to determine probabilities for running actions on a given set of size classes.

# Variables

SmallestSizeClassStrategyCalculator implements a StrategyCalculator that always prefers running actions on the smallest size class.

# Structs

ActionTimeoutExtractor is a helper type for extracting the execution timeout from an REv2 Action, taking configured default and maximum timeout values into account.
Outcomes of previous executions of an action.
Strategy for running an action on a size class that is not the largest size class.

# Interfaces

Analyzer of REv2 Actions, determining which worker size class is the most suitable for running it, and what timeout to use.
Learner for size class selection.
Selector of a size class for an analyzed action.
StrategyCalculator is responsible for computing the probabilities for choosing to run an action on size classes.