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
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
CreateMessageRegistry creates a new payload registry.
func MustCreateMessageRegistry ¶ added in v1.6.0
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. |
Click to show internal directories.
Click to hide internal directories.