【MongoDB】处理jumbo chunks警告信息
作者:互联网
# 先找到Jumbo chunk信息
sh.status()
{ "phone" : NumberLong("1877403465946274221") } -->> { "phone" : NumberLong("3773390314042115735") } on : shard_rep1 Timestamp(1, 19) jumbo
{ "phone" : NumberLong("3773390314042115735") } -->> { "phone" : NumberLong("3814730979458880718") } on : shard_rep6 Timestamp(5, 0)
{ "phone" : NumberLong("3814730979458880718") } -->> { "phone" : NumberLong("4969775405044926394") } on : shard_rep1 Timestamp(1, 21) jumbo
{ "phone" : NumberLong("4969775405044926394") } -->> { "phone" : NumberLong("6116561345441421207") } on : shard_rep1 Timestamp(1, 22) jumbo
{ "phone" : NumberLong("6116561345441421207") } -->> { "phone" : NumberLong("6281909790638264060") } on : shard_rep2 Timestamp(6, 0)
{ "phone" : NumberLong("6281909790638264060") } -->> { "phone" : NumberLong("7431576755601366158") } on : shard_rep1 Timestamp(1, 24) jumbo
{ "phone" : NumberLong("7431576755601366158") } -->> { "phone" : NumberLong("8581667096339087310") } on : shard_rep1 Timestamp(1, 25) jumbo
{ "phone" : NumberLong("8581667096339087310") } -->> { "phone" : NumberLong("8748576827033669058") } on : shard_rep6 Timestamp(7, 0)
# 执行
# 对于上面的Jumbo块,执行如下命令
sh.splitFind("db.tb",{shardkeyX:"shardkeyXValue_in_range"})
标签:phone,MongoDB,shard,rep1,NumberLong,jumbo,Timestamp,chunks 来源: https://blog.51cto.com/l0vesql/2445961