NorskManager.registerClusterNode() method

Pre-register a cluster slot. Returns a nodeId and a one-shot token that must be handed to a worker — the worker calls clusterMemberRegister with the token + its listen address/port + hardware info. Until the worker calls in, the slot is registered-but-inactive.

Signature:

registerClusterNode(nodeName: string, pool: string): Promise<ClusterRegistration>;

Parameters

Parameter Type Description

nodeName

string

human-readable label shown in the UI / listClusterNodes

pool

string

placement pool the slot is assigned to. Empty string leaves the slot unassigned (it won’t receive placement until setClusterNodePool is called). AutoManager stamps this value into nodeMetadata.tags["pool"] for placement filtering.

Returns: