NorskManager.setNodeTags() method

Merge tags onto a node: a key given here replaces its value, keys not given are untouched. The daemon persists the edit and re-applies it when it rediscovers the node after a restart, pushes it to the provider, and announces the node’s new metadata as a nodeTagsUpdated event. The spare tag is the daemon’s own: refused on an elastic node (FAILED_PRECONDITION — those spares are the AutoManager reconciler’s), while on a local server (cluster provider) spare: "true" marks it as a hot spare (refused while it holds a job) and any other value clears it; warmFor / reservedFor / exclusive beside it are the spare’s spec.

Signature:

setNodeTags(nodeId: NodeId, tags: {
        [key: string]: string;
    }): Promise<void>;

Parameters

Parameter Type Description

nodeId

NodeId

tags

{ [key: string]: string; }

Returns:

Promise<void>