Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type HeadNode
- func (h *HeadNode) ExecuteFunction(ctx context.Context, req execute.Request, subgroup string) (codes.Code, string, execute.ResultMap, execute.Cluster, error)
- func (h *HeadNode) ExecutionResult(id string) (execute.ResultMap, bool)
- func (h *HeadNode) PublishFunctionInstall(ctx context.Context, uri string, cid string, subgroup string) error
- func (h *HeadNode) Run(ctx context.Context) error
- type Option
Constants ¶
Variables ¶
View Source
var Counters = []prometheus.CounterDefinition{
{
Name: rollCallsPublishedMetric,
Help: "Number of roll calls this node issued.",
},
{
Name: executionsMetric,
Help: "Number of function executions.",
},
}
View Source
var DefaultConfig = Config{ RollCallTimeout: DefaultRollCallTimeout, ExecutionTimeout: DefaultExecutionTimeout, ClusterFormationTimeout: DefaultClusterFormationTimeout, DefaultConsensus: DefaultConsensusAlgorithm, }
DefaultConfig represents the default settings for the node.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RollCallTimeout time.Duration // How long do we wait for roll call responses.
ExecutionTimeout time.Duration // How long does the head node wait for worker nodes to send their execution results.
ClusterFormationTimeout time.Duration // How long do we wait for the nodes to form a cluster for an execution.
DefaultConsensus consensus.Type // Default consensus algorithm to use.
}
Config represents the Node configuration.
type HeadNode ¶
func (*HeadNode) ExecuteFunction ¶
func (h *HeadNode) ExecuteFunction(ctx context.Context, req execute.Request, subgroup string) (codes.Code, string, execute.ResultMap, execute.Cluster, error)
ExecuteFunction can be used to start function execution. At the moment this is used by the API server to start execution on the head node.
func (*HeadNode) ExecutionResult ¶
ExecutionResult fetches the execution result from the node cache.
Click to show internal directories.
Click to hide internal directories.