Create a Storage Node Pool
Once you have created your Administration process, you can
create a Storage Node Pool. This pool is used to contain all the Storage Nodes in
your data store. A Storage Node pool is used for resource distribution 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.
Note that a default pool called
AllStorageNodes will be created automatically and
all SNs will be added to it during the topology deployment process. Therefore, the
pool commands are optional if you use the
AllStorageNodes pool as the default pool during deployment. You
may have multiple kinds of Storage Nodes in different zones that vary by processor
type, speed and/or disk capacity. So the Storage Node pool lets you define a logical
grouping of Storage Nodes by whatever specification you pick.
Note:
This section is only to demonstrate how to explicitly create a Storage Node pool. Skip this section if you want to use the default poolAllStorageNodes during the topology deployment
process.
Remember that you already have a Storage Node
created. You did that in the previous step where you used the
deploy-sn command to deploy the Storage Node. Therefore, after
you add the pool, you can immediately join that first Storage Node to the pool.
The pool create command only requires you to
provide the name of the pool.
The pool join
command requires the name of the pool to which you want to join the Storage Node,
and the Storage Node's ID. You can obtain the Storage Node's ID using the
show topology command.
For example:
kv-> pool create -name BostonPoolOutput:Added pool BostonPoolkv-> show topologyOutput: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 RUNNINGkv-> pool join -name BostonPool -sn sn1Output:Added Storage Node(s) [sn1] to pool BostonPool