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:
Parameters | Description | Required |
---|---|---|
table | Table 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_name | The database where the table is located | No, defaults to "default" database |