首页> 外国专利> MONGOS CLUSTER BALANCING OPERATION FAILURE PREVENTION METHOD AND DEVICE

MONGOS CLUSTER BALANCING OPERATION FAILURE PREVENTION METHOD AND DEVICE

机译:Mongos集群平衡操作失败的预防方法和装置

摘要

A Mongos cluster balancing operation failure prevention method is provided. The method comprises: scanning each block in each shard in a Mongos cluster, and checking data stored in the blocks (S110); for each scanned block, determining whether data stored in the block reaches a preset threshold (S120); for a current block in which stored data reaches the preset threshold, dividing, in a shard in which the current block is located, the current block into one or more blocks (S130); and starting a Mongos cluster balancing operation, and migrating one or more blocks in the shard in which the current block is located to another shard (S140). The method of the invention can effectively prevent a Mongos cluster balancing operation failure, ensure that data in shards of a Mongos cluster is balanced, improve database cluster efficiency, and ensure service stability.
机译:提供了一种Mongos集群平衡操作失败的预防方法。该方法包括:扫描Mongos集群中每个分片中的每个块,并检查存储在这些块中的数据(S110);对于每个被扫描的块,确定存储在该块中的数据是否达到预设阈值(S120);对于存储的数据达到预设阈值的当前块,在当前块所在的碎片中,将当前块划分为一个或多个块(S130);并开始Mongos集群平衡操作,并将当前块所在的分片中的一个或多个块迁移到另一分片中(S140)。本发明的方法可以有效地防止Mongos集群均衡操作失败,确保Mongos集群的分片中的数据均衡,提高数据库集群的效率,并确保服务的稳定性。

著录项

  • 公开/公告号WO2018121407A1

    专利类型

  • 公开/公告日2018-07-05

    原文格式PDF

  • 申请/专利权人 BEIJING QIHOO TECHNOLOGY COMPANY LIMITED;

    申请/专利号WO2017CN117783

  • 发明设计人 LI DAN;

    申请日2017-12-21

  • 分类号G06F17/30;

  • 国家 WO

  • 入库时间 2022-08-21 12:43:33

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号