Create a Storage Node Pool

Once you have created your Admin process, you can optionally create a Storage Node Pool. This pool can be used to logically group the Storage Nodes in your data store. You may have multiple kinds of Storage Nodes in different zones that vary by processor type, speed and/or disk capacity. The Storage Node pool lets you define a logical grouping of Storage Nodes by whatever specification you pick. Such grouping can help in efficient resource distribution and management when creating or modifying a data store.

You use the pool create command to create this pool, then you join Storage Nodes to the pool using the pool join command.

If you do not create any storage node pool, a default pool called AllStorageNodes will be created automatically and all Storage Nodes will be added to it during the topology deployment process.

You already have a Storage Node created in the previous steps where you used the deploy-sn command to deploy the Storage Node. Therefore, after you create the pool, you can immediately join that first Storage Node to the pool.

The pool create command (pool create -name <name> -json) requires you to provide the name of the pool.

The pool join command (pool join -name <name> [-sn <snX>]* [-json]) requires you to identify the Storage Node's pool to join, and the Storage Node's ID. You can obtain the Storage Node's ID using the show topology command.

For more details on the pool commands, see pool in Admin CLI Reference.

For example:
kv-> pool create -name BostonPool
Added pool BostonPool
kv-> show topology
store=mystore numPartitions=0 sequence=2 zn: id=zn1
name=Boston repFactor=1 type=PRIMARY allowArbiters=false
masterAffinity=false
sn=[sn1] zn:[id=zn1 name=Boston] <hostname>:5000 capacity=1 RUNNING
The Storage Node ID is sn1.
kv-> pool join -name BostonPool -sn sn1
Added Storage Node(s) [sn1] to pool BostonPool