blob: 0c82a03e2a2b4d4fbcdfda6732210f11ef4bc8ff [file] [log] [blame]
"use strict";(self.webpackChunkdoris_website=self.webpackChunkdoris_website||[]).push([[65131],{15680:(e,t,n)=>{n.d(t,{xA:()=>m,yg:()=>y});var a=n(296540);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},s=Object.keys(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=a.createContext({}),c=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},m=function(e){var t=c(e.components);return a.createElement(o.Provider,{value:t},e.children)},p="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,s=e.originalType,o=e.parentName,m=l(e,["components","mdxType","originalType","parentName"]),p=c(n),u=r,y=p["".concat(o,".").concat(u)]||p[u]||d[u]||s;return n?a.createElement(y,i(i({ref:t},m),{},{components:n})):a.createElement(y,i({ref:t},m))}));function y(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var s=n.length,i=new Array(s);i[0]=u;var l={};for(var o in t)hasOwnProperty.call(t,o)&&(l[o]=t[o]);l.originalType=e,l[p]="string"==typeof e?e:r,i[1]=l;for(var c=2;c<s;c++)i[c]=n[c];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}u.displayName="MDXCreateElement"},977576:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>l,toc:()=>c});var a=n(58168),r=(n(296540),n(15680));const s={title:"ADMIN-REBALANCE-DISK",language:"en"},i=void 0,l={unversionedId:"sql-manual/sql-statements/Database-Administration-Statements/ADMIN-REBALANCE-DISK",id:"version-2.1/sql-manual/sql-statements/Database-Administration-Statements/ADMIN-REBALANCE-DISK",title:"ADMIN-REBALANCE-DISK",description:"\x3c!--",source:"@site/versioned_docs/version-2.1/sql-manual/sql-statements/Database-Administration-Statements/ADMIN-REBALANCE-DISK.md",sourceDirName:"sql-manual/sql-statements/Database-Administration-Statements",slug:"/sql-manual/sql-statements/Database-Administration-Statements/ADMIN-REBALANCE-DISK",permalink:"/docs/sql-manual/sql-statements/Database-Administration-Statements/ADMIN-REBALANCE-DISK",draft:!1,tags:[],version:"2.1",frontMatter:{title:"ADMIN-REBALANCE-DISK",language:"en"},sidebar:"docs",previous:{title:"KILL",permalink:"/docs/sql-manual/sql-statements/Database-Administration-Statements/KILL"},next:{title:"ADMIN-CANCEL-REBALANCE-DISK",permalink:"/docs/sql-manual/sql-statements/Database-Administration-Statements/ADMIN-CANCEL-REBALANCE-DISK"}},o={},c=[{value:"ADMIN-REBALANCE-DISK",id:"admin-rebalance-disk",level:2},{value:"Name",id:"name",level:3},{value:"Description",id:"description",level:3},{value:"Example",id:"example",level:3},{value:"Keywords",id:"keywords",level:3},{value:"Best Practice",id:"best-practice",level:3}],m={toc:c},p="wrapper";function d(e){let{components:t,...n}=e;return(0,r.yg)(p,(0,a.A)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,r.yg)("h2",{id:"admin-rebalance-disk"},"ADMIN-REBALANCE-DISK"),(0,r.yg)("version",{since:"1.2.0"},(0,r.yg)("h3",{id:"name"},"Name"),(0,r.yg)("p",null,"ADMIN REBALANCE DISK"),(0,r.yg)("h3",{id:"description"},"Description"),(0,r.yg)("p",null,"This statement is used to try to rebalance disks of the specified backends first, no matter if the cluster is balanced"),(0,r.yg)("p",null,"Grammar:"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre"},'ADMIN REBALANCE DISK [ON ("BackendHost1:BackendHeartBeatPort1", "BackendHost2:BackendHeartBeatPort2", ...)];\n')),(0,r.yg)("p",null,"Explain:"),(0,r.yg)("ol",null,(0,r.yg)("li",{parentName:"ol"},"This statement only means that the system attempts to rebalance disks of specified backends with high priority, no matter if the cluster is balanced."),(0,r.yg)("li",{parentName:"ol"},"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.")),(0,r.yg)("h3",{id:"example"},"Example"),(0,r.yg)("ol",null,(0,r.yg)("li",{parentName:"ol"},"Attempt to rebalance disks of all backends")),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre"},"ADMIN REBALANCE DISK;\n")),(0,r.yg)("ol",{start:2},(0,r.yg)("li",{parentName:"ol"},"Attempt to rebalance disks oof the specified backends")),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre"},'ADMIN REBALANCE DISK ON ("192.168.1.1:1234", "192.168.1.2:1234");\n')),(0,r.yg)("h3",{id:"keywords"},"Keywords"),(0,r.yg)("p",null,"ADMIN,REBALANCE,DISK"),(0,r.yg)("h3",{id:"best-practice"},"Best Practice")))}d.isMDXComponent=!0}}]);