Do not default to proxy nodes in Broker::PoolSpec

This requires pool creation to spell out a spec explicitly, which the only code
using these types already does. There's no reason for pools to automatically
refer to proxies.
This commit is contained in:
Christian Kreibich 2024-02-02 13:46:58 -08:00
parent 42f0a10cb0
commit 8437012346

View file

@ -25,7 +25,7 @@ export {
## A topic string that can be used to reach all nodes within a pool. ## A topic string that can be used to reach all nodes within a pool.
topic: string &default = ""; topic: string &default = "";
## The type of nodes that are contained within the pool. ## The type of nodes that are contained within the pool.
node_type: Cluster::NodeType &default = Cluster::PROXY; node_type: Cluster::NodeType;
## The maximum number of nodes that may belong to the pool. ## The maximum number of nodes that may belong to the pool.
## If not set, then all available nodes will be added to the pool, ## If not set, then all available nodes will be added to the pool,
## else the cluster framework will automatically limit the pool ## else the cluster framework will automatically limit the pool
@ -43,7 +43,7 @@ export {
## A pool used for distributing data/work among a set of cluster nodes. ## A pool used for distributing data/work among a set of cluster nodes.
type Pool: record { type Pool: record {
## The specification of the pool that was used when registering it. ## The specification of the pool that was used when registering it.
spec: PoolSpec &default = PoolSpec(); spec: PoolSpec;
## Nodes in the pool, indexed by their name (e.g. "manager"). ## Nodes in the pool, indexed by their name (e.g. "manager").
nodes: PoolNodeTable &default = PoolNodeTable(); nodes: PoolNodeTable &default = PoolNodeTable();
## A list of nodes in the pool in a deterministic order. ## A list of nodes in the pool in a deterministic order.