Configuring the Number of Storage Pools per Instance
Describes how to set the number of storage pools for each file system instance, from the CLI.
About this task
As you add file system instances, data-fabric assigns SPs to them. If file system instances are removed, the SPs assigned to those instances are re-allocated among the remaining live file system instances. By default, the value is 1, which implies that there is only 1 SP for all instances. You can re-configure the number of SPs per instance globally or at the node-level.
- CLDB node, restart warden by running the following command:
service mapr-warden restart
- Non-CLDB node, restart file server by running the following command:
maprcli node services -nodes <node-ip> -fileserver restart
Global Configuration
About this task
If you configure globally, the configuration will be applied to all the nodes in the cluster. Make the following changes only on homogeneous clusters (that is, when all nodes in the cluster have the same type of disks and the stripe width of the disks is the same):
Procedure
-
Run the following commands:
maprcli config save -values {multimfs.numsps.perinstance:3} maprcli config save -values {multimfs.numinstances.pernode:2}
The default value of themultimfs.numsps.perinstance
parameter is 0. Suppose a node reports 9 SPs:- For a value of 3, the node would need to start 3 instances.
- For a value of 5, the node would need to start 2 instances.
NOTEOn AWS nodes with HDD, set themultimfs.numsps.perinstance
parameter value to 50 to use a single instance. - Restart Warden in every node for the configuration change to take effect.
Node-level Configuration
About this task
At the node level, you can configure different number of instances for each node in the cluster. To change the number of SPs per instance:
Procedure
-
Run the following command:
maprcli node modify -nodes <nodename> -numSpsPerInstance <n>
The number of instances changes automatically when new SPs are created.
- Restart Warden on the nodes where the configuration has changed.