Skip to main content

Register-ZrStore

Adopts an externally-run (attach-mode) store on the manager, recording its metadata and orchestrator-run node endpoints without creating or forking any processes.

Syntax

Register-ZrStore
-Name <string>
-Node <string[]>
[-ReplicationFactor <int>]
[-Partitions <int>]
[-Tls]
[-Managers <string[]>] [-Port <int>] [-Token <string>] [-TimeoutSec <int>]
[-WhatIf] [-Confirm]

Description

Register-ZrStore is the attach-mode counterpart of New-ZrStore. In the attach model the orchestrator (docker compose / kubectl) owns the nodes' lifecycle; this cmdlet only tells the manager how to observe them. It records the store's metadata and the node endpoints on the manager without starting any processes.

Each -Node entry is [nodeId=]host:clientPort[:clusterPort], with nodeId defaulting to the host and clusterPort optional. The cmdlet requires a manager to talk to — an active workspace (create one with New-ZrWorkspace <name> @('host:7801') -Activate) or an explicit -Managers — and targets the first resolved manager.

Parameters

ParameterTypeRequiredDescription
-NamestringYesName of the externally-run store to adopt. Position 0.
-Nodestring[]YesNode endpoints, one per entry (comma/array): [nodeId=]host:clientPort[:clusterPort]. Position 1.
-ReplicationFactorintNoReplication factor recorded for the store. Default 1.
-PartitionsintNoPartition count recorded for the store. Default 256.
-TlsswitchNoThe store's data plane runs TLS, so the manager reaches its nodes over TLS when collecting diagnostics.
-Managersstring[]NoManagement Service endpoints to target; when omitted the active workspace's managers are used.
-PortintNoManagement Service port for bare-host managers. Default 7801.
-TokenstringNoAdmin bearer token for authenticated control-plane calls.
-TimeoutSecintNoPer-request timeout in seconds. Default 30.

Supports -WhatIf and -Confirm.

Examples

Adopt an externally-run orders store made of two nodes reachable on client port 7861.

Register-ZrStore -Name orders -Node "orders-0:7861","orders-1:7861"

Adopt a store with explicit node IDs, cluster ports, a replication factor, and a TLS data plane.

Register-ZrStore -Name orders `
-Node "n0=orders-0:7861:7811","n1=orders-1:7861:7811" `
-ReplicationFactor 2 -Partitions 512 -Tls