# MongoDB sharded-cluster installation template. # # On the computer that will run mongos (the router): # # cp _mongodb_cluster_setup.bash.in _mongodb_cluster_setup.bash # # Edit the copied file for the installation. The active file is deliberately # not committed to SVN. After checking out and installing this extension on # every other cluster computer, copy the edited file to the same source # directory on each computer. # # These settings are sourced by Bash. The shard hostnames are therefore held # in a Bash indexed array; add or remove entries to control the shard count. # # Application-facing mongos router. # # Edit the following router hostname... GS_MONGODB_ROUTER_HOSTNAME="hostname-mongo-router" GS_MONGODB_ROUTER_PORT=27017 # # Dedicated config-server mongod. This may be the same computer as the router, # but it is deliberately represented as a separate role. # # Edit the following server hostname... GS_MONGODB_CONFIG_SERVER_HOSTNAME="hostname-mongo-config-server" GS_MONGODB_CONFIG_SERVER_PORT=27019 GS_MONGODB_CONFIG_REPLSET="gsMongoConfig" # # One shard-server mongod is run on each listed computer. Hostnames must be # unique. Replica-set names are generated from the prefix and 1-based position: # gsMongoShard1, gsMongoShard2, gsMongoShard3, and so on. # # Edit the following shard hostnames ... GS_MONGODB_SHARD_HOSTNAMES=( "hostname-mongo-shard1" "hostname-mongo-shard2" "hostname-mongo-shard3" ) GS_MONGODB_SHARD_PORT=27018 GS_MONGODB_SHARD_REPLSET_PREFIX="gsMongoShard" # Each machine stores only the data for the roles it runs. GS_MONGODB_CLUSTER_HOME="$GS_MONGODB_SOURCE_HOME/cluster-server-runtime" # # Cluster members bind to loopback and their configured cluster hostname. # Do not expose these unauthenticated development ports beyond the trusted # private network. # GS_MONGODB_CLUSTER_LOOPBACK_ADDRESS="127.0.0.1" # # RUN/CONFIGURE cluster-wide scripts execute their role-specific scripts over # SSH. The extension should normally be checked out at the same absolute path # on every computer. Change this when the remote checkout path differs. # GS_MONGODB_REMOTE_SOURCE_DIR="$GS_MONGODB_SOURCE_HOME" GS_MONGODB_SSH_COMMAND="ssh" GS_MONGODB_SCP_COMMAND="scp" GS_MONGODB_SSH_OPTIONS=() GS_MONGODB_SCP_OPTIONS=() # # Startup/configuration waits. # GS_MONGODB_START_TIMEOUT=60 GS_MONGODB_PRIMARY_TIMEOUT=60 # # mongosh is used by default. This variable also makes the shell command easy # to replace in a specialised installation. # GS_MONGODB_SHELL="mongosh"