RS1 と RS2 の 2 つのシャードを持つ Mongo クラスターがあります。RS1は約600G(※)、RS2は約460Gです。数分前に、新しいシャード RS3 を追加しました。mongos に接続してステータスを確認すると、次のように表示されます。
mongos> db.printShardingStatus()
--- Sharding Status ---
sharding version: { "_id" : 1, "version" : 3 }
shards:
{ "_id" : "RS1", "host" : "RS1/dbs1d1:27018" }
{ "_id" : "RS2", "host" : "RS2/dbs1d2:27018" }
{ "_id" : "RS3", "host" : "RS3/dbs3a:27018" }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" : "config" }
{ "_id" : "demo", "partitioned" : false, "primary" : "RS1" }
{ "_id" : "cm_prod", "partitioned" : true, "primary" : "RS1" }
cm_prod.profile_daily_stats chunks:
RS2 16
RS1 16
too many chunks to print, use verbose if you want to force print
cm_prod.profile_raw_stats chunks:
RS2 157
RS1 157
too many chunks to print, use verbose if you want to force print
cm_prod.video_latest_stats chunks:
RS1 152
RS2 153
too many chunks to print, use verbose if you want to force print
cm_prod.video_raw_stats chunks:
RS1 3257
RS2 3257
too many chunks to print, use verbose if you want to force print
[ ...various unpartitioned DBs snipped...]
そのため、新しい RS3 シャードはシャードのリストに表示されますが、「各シャードが持つチャンクの数」のリストには表示されません。すべてのシャードされたコレクションのカウントが 0 で、そのリストに表示されると予想していました。
私が少ししたい場合、これは自分自身を整理する予想される動作ですか?