1. I add first shard "set1 " to cluster.
2. I insert some large files, each file's size is 430MB.
3. I add the second shard "set2" to cluster.
Then in the mongos's long ,I found:
Mon Mar 5 17:24:33 [Balancer] moveChunk result: { chunkTooBig: true,
estimatedChunkSize: 432819556, errmsg: "chunk too big to move", ok:
0.0 }
Mon Mar 5 17:24:33 [Balancer] balancer move failed: { chunkTooBig:
true, estimatedChunkSize: 432819556, errmsg: "chunk too big to move",
ok: 0.0 } from: set1 to: set2 chunk: { _id: "mongo.gridfs.file.chunks-
files_id_ObjectId('4f5476c5dffe1fd3f6f1a121')", lastmod: Timestamp
2000|1, ns: "mongo.gridfs.file.chunks", min: { files_id:
ObjectId('4f5476c5dffe1fd3f6f1a121') }, max: { files_id:
ObjectId('4f5476c5dffe1fd3f6f1a122') }, shard: "set1" }
Mon Mar 5 17:24:33 [Balancer] forcing a split because migrate failed
for size reasons
Mon Mar 5 17:24:33 [Balancer] want to split chunk, but can't find
split point chunk ns:mongo.gridfs.file.chunks at:
set1:set1/192.168.1.97:37017,192.168.1.99:37017 lastmod: 2|1 min:
{ files_id: ObjectId('4f5476c5dffe1fd3f6f1a121') } max: { files_id:
ObjectId('4f5476c5dffe1fd3f6f1a122') } got: <empty>
Mon Mar 5 17:24:33 [Balancer] forced split results: {}
Mon Mar 5 17:24:33 [Balancer] distributed lock 'balancer/
localhost.localdomain:30000:1330936112:1804289383' unlocked.
As you saw, split chunk failed for chunk too big, Then I do:
use config
db.settings.save({_id:"chunksize", value:500})
10 minutes later, i find mongos's log is :db.settings.save({_id:"chunksize", value:500})
Mon Mar 5 17:34:01 [Balancer] moving chunk ns:
mongo.gridfs.file.chunks moving ( ns:mongo.gridfs.file.chunks at:
set1:set1/192.168.1.97:37017,192.168.1.99:37017 lastmod: 2|1 min:
{ files_id: ObjectId('4f5476c5dffe1fd3f6f1a121') } max: { files_id:
ObjectId('4f5476c5dffe1fd3f6f1a122') })
set1:set1/192.168.1.97:37017,192.168.1.99:37017 ->
set2:set2/192.168.1.99:37018,192.168.1.121:37018
Mon Mar 5 17:34:02 [Balancer] moveChunk result: { chunkTooBig: true,
estimatedChunkSize: 432819556, errmsg: "chunk too big to move", ok:
0.0 }
Mon Mar 5 17:34:02 [Balancer] balancer move failed: { chunkTooBig:
true, estimatedChunkSize: 432819556, errmsg: "chunk too big to move",
ok: 0.0 } from: set1 to: set2 chunk: { _id: "mongo.gridfs.file.chunks-
files_id_ObjectId('4f5476c5dffe1fd3f6f1a121')", lastmod: Timestamp
2000|1, ns: "mongo.gridfs.file.chunks", min: { files_id:
ObjectId('4f5476c5dffe1fd3f6f1a121') }, max: { files_id:
ObjectId('4f5476c5dffe1fd3f6f1a122') }, shard: "set1" }
Mon Mar 5 17:34:02 [Balancer] forcing a split because migrate failed
for size reasons
Mon Mar 5 17:34:02 [Balancer] want to split chunk, but can't find
split point chunk ns:mongo.gridfs.file.chunks at:
set1:set1/192.168.1.97:37017,192.168.1.99:37017 lastmod: 2|1 min:
{ files_id: ObjectId('4f5476c5dffe1fd3f6f1a121') } max: { files_id:
ObjectId('4f5476c5dffe1fd3f6f1a122') } got: <empty>
Mon Mar 5 17:34:02 [Balancer] forced split results: {}
Mon Mar 5 17:34:02 [Balancer] distributed lock 'balancer/
localhost.localdomain:30000:1330936112:1804289383' unlocked.
Yes, i failed too.
So how to use the chunksize correctly?
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
