bprotocol

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HeartbeatTopicFormat = "bacalhau.global.compute.%s.out.heartbeat"

Variables

View Source
var ErrUpgradeAvailable = fmt.Errorf("node supports NCLv1 protocol - legacy protocol disabled")

ErrUpgradeAvailable indicates that the orchestrator supports the NCLv1 protocol

Functions

func ComputeHeartbeatTopic added in v1.6.0

func ComputeHeartbeatTopic(nodeID string) string

ComputeHeartbeatTopic returns the subject to publish heartbeat messages to. it publishes to the outgoing heartbeat subject of a specific compute node, which the orchestrator subscribes to.

func CreateMessageRegistry added in v1.6.0

func CreateMessageRegistry() (*envelope.Registry, error)

CreateMessageRegistry creates a new payload registry.

func MustCreateMessageRegistry added in v1.6.0

func MustCreateMessageRegistry() *envelope.Registry

MustCreateMessageRegistry creates a new payload registry.

func OrchestratorHeartbeatSubscription added in v1.6.0

func OrchestratorHeartbeatSubscription() string

OrchestratorHeartbeatSubscription returns the subject to subscribe for compute heartbeats. it subscribes for heartbeat messages from all compute nodes

Types

type ManagementEndpoint added in v1.6.0

type ManagementEndpoint interface {
	// Register registers a compute node with the requester node.
	Register(context.Context, legacy.RegisterRequest) (*legacy.RegisterResponse, error)
	// UpdateInfo sends an update of node info to the requester node
	UpdateInfo(context.Context, legacy.UpdateInfoRequest) (*legacy.UpdateInfoResponse, error)
	// UpdateResources updates the resources currently in use by a specific node
	UpdateResources(context.Context, legacy.UpdateResourcesRequest) (*legacy.UpdateResourcesResponse, error)
}

ManagementEndpoint is the transport-based interface for compute nodes to register with the requester node, update information and perform heartbeats.

Directories

Path Synopsis
Package compute provides transport layer implementation for compute nodes using the legacy bprotocol over NATS.
Package compute provides transport layer implementation for compute nodes using the legacy bprotocol over NATS.
Package orchestrator provides transport layer implementation for orchestrator nodes using the legacy bprotocol over NATS.
Package orchestrator provides transport layer implementation for orchestrator nodes using the legacy bprotocol over NATS.

Jump to

Keyboard shortcuts

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