You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: