Number of Replicas

Users can use the following commands to change the number of table replicas.

curl -u shiva:shiva -XPUT "localhost:8902/hippo/v1/{table_name}/_settings?pretty" -H 'Content-Type: application/json' -d'{
  "number_of_replicas" : 3
}';

Result:

{
  "acknowledged" : true
}

Parameter description:

ParametersDescriptionRequired
tableTable to be matched, supports using asterisk (*) wildcard character and specifying multiple pattens, which are separated by comma (,)No, defaults to *, gets all table information of current database
database_nameThe database where the table is locatedNo, defaults to "default" database
Table 14 Change Number of Table Replicas