Skip to content
New issue

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

Sharding doesn't work. #348

Open
dgarstang opened this issue Oct 22, 2014 · 1 comment
Open

Sharding doesn't work. #348

dgarstang opened this issue Oct 22, 2014 · 1 comment
Labels

Comments

@dgarstang
Copy link

Best I can tell, multiple shards just can't work.

shard_nodes = search(
:node,
"mongodb_cluster_name:#{new_resource.cluster_name} AND
mongodb_is_shard:true AND
chef_environment:#{node.chef_environment}"
)

That's going to return ALL nodes across ALL shards and then pass it to the addshard() command. The addshard command takes nodes that comprise a single shard, not all nodes across all shards.

@ghost
Copy link

ghost commented Nov 6, 2014

I know this is no help at all but it seems to be the same issue with the replication. By chance have you figured anything out with this?

adamjnichols referenced this issue in adamjnichols/chef-mongodb Feb 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants