| --- |
| { |
| "title": "ADMIN-REBALANCE-DISK", |
| "language": "en" |
| } |
| --- |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| ## ADMIN-REBALANCE-DISK |
| |
| ### Name |
| |
| ADMIN REBALANCE DISK |
| |
| ### Description |
| |
| This statement is used to try to rebalance disks of the specified backends first, no matter if the cluster is balanced |
| |
| Grammar: |
| |
| ``` |
| ADMIN REBALANCE DISK [ON ("BackendHost1:BackendHeartBeatPort1", "BackendHost2:BackendHeartBeatPort2", ...)]; |
| ``` |
| |
| Explain: |
| |
| 1. This statement only means that the system attempts to rebalance disks of specified backends with high priority, no matter if the cluster is balanced. |
| 2. The default timeout is 24 hours. Timeout means that the system will no longer rebalance disks of specified backends with high priority. The command settings need to be reused. |
| |
| ### Example |
| |
| 1. Attempt to rebalance disks of all backends |
| |
| ``` |
| ADMIN REBALANCE DISK; |
| ``` |
| |
| 2. Attempt to rebalance disks oof the specified backends |
| |
| ``` |
| ADMIN REBALANCE DISK ON ("192.168.1.1:1234", "192.168.1.2:1234"); |
| ``` |
| |
| ### Keywords |
| |
| ADMIN,REBALANCE,DISK |
| |
| ### Best Practice |