We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
We are trying to deploy a complete sharded environment using a compound shard key. We have modified the libraries/mongodb.rb to allow this:
sharded_collections.each do |name, key| cmd = BSON::OrderedHash.new cmd['shardcollection'] = name cmd['key'] = key # before {key => 1} begin
and the sharding key is defined in role like this:
"sharded_collections": { "db.col":{ "field1": 1, "field2": 1 } }
so far we have only managed to get this error,
Error executing action `create` on resource 'ruby_block[config_sharding]'
trying to execute the line 311:
result = admin.command(cmd, :check_response => false)
any clue what are we doing wrong?
thanks
The text was updated successfully, but these errors were encountered:
honestly I've got no idea, except that your command is shardcollection instead of shardCollection, and I see the docs are here: http://docs.mongodb.org/manual/reference/command/shardCollection/
shardcollection
shardCollection
I'm happy to get support for compound keys added, anything I can do to help?
Sorry, something went wrong.
No branches or pull requests
Hi,
We are trying to deploy a complete sharded environment using a compound shard key. We have modified the libraries/mongodb.rb to allow this:
and the sharding key is defined in role like this:
so far we have only managed to get this error,
trying to execute the line 311:
any clue what are we doing wrong?
thanks
The text was updated successfully, but these errors were encountered: