Adding Copysets
To horizontally scale an existing data grid you can create additional copysets and create nodes to assign to these copysets.
Use the copyset create command in the tibdg tool to create the copysets and nodes. Once created, though the nodes can be started they do not yet receive any data. Use the grid redistribute command in the tibdg tool to start the data redistribution process.
The tibdg grid redistribute command can be invoked at any time to assign data to newly added copysets. If the nodes involved in the redistribution are not running, they begin redistributing data once they are started.
For example, to grow a data grid from three copysets to four copysets, the following commands must be used:
tibdg -r http://host:port copyset create cset4 tibdg -r http://host:port node create --copyset cset4 --dir ./s4_data s4 tibdgnode -r http://host:port -n s4 tibdg -r http://host:port grid redistribute
View the status of the redistribution by running the status command in the tibdg tool.
tibdg -r http://host:port status
- Data Redistribution
Data redistribution is done in the background and does not block ongoing operations while data is being transferred.