set_peer_bandwidth
Definition
Sets the source bandwidth (per Region Server) for the specified replication relationship (peer).
|
TIP
To return to the default bandwidth value configured at the server side, call this command without arguments.
|
Usage
set_peer_bandwidth '<peer_id>'[, <bandwidth_value>]
| Parameter | Description |
|---|---|
peer_id |
A unique identifier of the replication peer. Should not contain hyphens |
bandwidth_value |
A desired bandwidth value (in bytes) |
Examples
Setting a bandwidth equal to 2 MB
hbase(main):049:0> set_peer_bandwidth '1', 2097152 Took 0.0241 seconds hbase(main):050:0> list_peers PEER_ID CLUSTER_KEY ENDPOINT_CLASSNAME STATE REPLICATE_ALL NAMESPACES TABLE_CFS BANDWIDTH 1 serov-adh-1.ru-central1.internal,serov-adh-2.ru-central1.internal,serov-adh-3.ru-central1.internal:2181:/hbase ENABLED false ns1;ns2 default.articles;default.table10;default.temp1:cf1 2097152 1 row(s) Took 0.0069 seconds => #<Java::JavaUtil::ArrayList:0x780c0>
Resetting a bandwidth
hbase(main):051:0> set_peer_bandwidth '1' Took 0.0096 seconds hbase(main):052:0> list_peers PEER_ID CLUSTER_KEY ENDPOINT_CLASSNAME STATE REPLICATE_ALL NAMESPACES TABLE_CFS BANDWIDTH 1 serov-adh-1.ru-central1.internal,serov-adh-2.ru-central1.internal,serov-adh-3.ru-central1.internal:2181:/hbase ENABLED false ns1;ns2 default.articles;default.table10;default.temp1:cf1 0 1 row(s) Took 0.0080 seconds => #<Java::JavaUtil::ArrayList:0x4ce18cec>