<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] > [參考](https://blog.51cto.com/john88wang/1619817) ## 1. 確保Blancer進程已經開啟 ``` mongos> sh.getBalancerState() true // 開啟 mongos > sh.startBalancer(); /*{ "ok" : 1 }*/ //停止 mongos > sh.stopBalancer(); /*{ "ok" : 1 }*/ ``` ## 2.移走你要的分片 ``` mongos> sh.status(); mongos> use admin; //移走分片上的數據塊 mongos> db.runCommand({removeShard : "shard3"}) // 查看遷移狀態 mongos> db.runCommand({removeShard : "shard3"}) /* { "msg" : "draining ongoing", "state" : "ongoing", "remaining" : { "chunks" : NumberLong(0), //降為0 "dbs" : NumberLong(2) }, "note" : "you need to drop or movePrimary these databases", "dbsToMove" : [ "taiwan_game4", "taiwan_game5" ], "ok" : 1 } */ ``` ## 如果一個分片是一個或者多個數據庫的primary shard ``` mongos> use admin; mongos> db.runCommand( { movePrimary: "taiwan_game4", to: "taiwan_shard2" }) mongos> db.runCommand( { movePrimary: "taiwan_game5", to: "taiwan_shard2" }) ``` ## 結束遷移過程 ``` mongos> db.runCommand({removeShard : "taiwan_shard1"}) { "msg" : "removeshard completed successfully", "state" : "completed", "shard" : "taiwan_shard1", "ok" : 1 } ``` 當state狀態為completed時,遷移完成。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看