1)We use 1.8.1 version.
2) shardCollection runs well without any error.
3)
db.printShardingStatus()
--- Sharding Status ---
sharding version: { "_id" : 1, "version" : 3 }
shards:
{ "_id" : "sh1", "host" : "sh1/
andorra.softserveinc.com:27031" }
databases:
{ "_id" : "admin", "partitioned" : false, "primary" :
"config" }
{ "_id" : "Documents", "partitioned" : true, "primary" :
"sh1" }
Documents.fs.chunks
chunks: sh1 3
{ "n" : { $minKey : 1 }, "files_id" :
{ $minKey : 1 } } -->> { "n" : 0, "files_id" :
ObjectId("4e0da2cd0cacdf741a38ed9f") } on : sh1 { "t" : 1000, "i" :
1 }
{ "n" : 0, "files_id" :
ObjectId("4e0da2cd0cacdf741a38ed9f") } -->> { "n" : 84, "files_id" :
ObjectId("4e0da2cd0cacdf741a38ed9f") } on : sh1 { "t" : 1000, "i" :
3 }
{ "n" : 84, "files_id" :
ObjectId("4e0da2cd0cacdf741a38ed9f") } -->> { "n" : { $maxKey : 1 },
"files_id" : { $maxKey : 1 } } on : sh1 { "t" : 1000, "i" : 4 }
4) mongofiles.exe gives "assertion: 9008 filemd5 failed"
c# driver gives - GridFS chunks collection can only be sharded on
files_id
Current issue is reflected in this thread:
http://groups.google.com/group/mongodb-user/browse_thread/thread/61484e9bb75abe57
But question is how we could avoid creating Insert hotspot node if we
allowed only sharding GridFS collections on file_id which is
monotonically increasing?