Skip to content

Commit

Permalink
mongos should be run on 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Sep 19, 2023
1 parent 51a22ec commit 06af49a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/charms/mongodb/v0/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ def get_mongos_args(config: MongoDBConfiguration) -> str:
# no need to add TLS since no network calls are used, since mongos is configured to listen
# on local host
cmd = [
# mongos on config server side only runs on local host
"--bind_ip localhost",
# mongos on config server side should run on 0.0.0.0 so it can be accessed by other units
# in the sharded cluster
"--bind_ip 0.0.0.0",
# todo figure out this one
f"--configdb {config_server_uri}",
# config server is already using 27017
Expand Down

0 comments on commit 06af49a

Please sign in to comment.