How to tell if you are sharding?

29 views
Skip to first unread message

Nestor Ledon

unread,
Nov 16, 2012, 2:44:33 PM11/16/12
to mongod...@googlegroups.com
How would I know my collection is being sharded?

I capped Shard1 at 1000 in an attempt to force it to shard, but running "show colections" on Shard2 yields nothing.

Nestor Ledon

unread,
Nov 16, 2012, 3:10:08 PM11/16/12
to mongod...@googlegroups.com
-_- scratch that. Capped collections aren't shard-able.

gregor

unread,
Nov 16, 2012, 6:06:22 PM11/16/12
to mongod...@googlegroups.com
I think you are mixing up capped collections and shard maxSize
If you specified 1000 as maxSize that's 1000MB. 
A better way to force chunks to balance (sharding) is to limit chunkSize (say set it to 1MB) - just do this for test purposes though. 

You can check sharding status by connecting to mongos and running
sh.status()


On Friday, November 16, 2012 8:10:08 PM UTC, Nestor Ledon wrote:
-_- scratch that. Caed collections aren't shard-able.

Nestor Ledon

unread,
Nov 18, 2012, 7:23:59 PM11/18/12
to mongod...@googlegroups.com
Thank you for your reply. I was definitely getting them mixed up.


--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Reply all
Reply to author
Forward
0 new messages