Closed sbaxter2908 closed 1 year ago
Ok, I figured out what the problem was.
First, you can't use the load balancer FQDN for the MONGODB_MONGOS_HOST environment variable.
Second, set the MONGODB_ADVERTISED_HOSTNAME on each node to the hostname of the server.
Doing both of those fixed the issue
Name and Version
bitnami/mongodb-sharded:6.0.6
What architecture are you using?
amd64
What steps will reproduce the bug?
In AWS ECS for EC2...
Make sure to have 3 ECS Instances t3.large. Each task will run on a different server. Mongos task is behind a network load balancer. Shard is attempting to connect through network load balancer.
Create a task definition for configsvr:
What is the expected behavior?
Shard successfully connects to the cluster
What do you see instead?
Additional information
Please let me know what else you need from me. Googling has failed me. Everybody seems to be trying to run this on Kubernetes and not ECS on EC2 instances