Sharding doesn't work.
dgarstang opened this issue · 1 comments
dgarstang commented
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.
Deleted user commented
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?