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
`mlaunch` will then start up the sharded cluster. Once it finishes, stop the cluster:
302
+
```shell
303
+
mlaunch stop
304
+
```
305
+
306
+
When `mlaunch` has stopped the cluster, navigate to the `data` directory and edit the `.mlaunch_startup` file:
307
+
- Add `--setParameter \"loadBalancerPort=27050\"` to the first mongos configuration at the bottom of the file.
308
+
- Add `--setParameter \"loadBalancerPort=27051\"` to the second mongos configuration at the bottom of the file.
309
+
310
+
Navigate back up to the root directory where `mlaunch` was initialized and restart:
311
+
```shell
312
+
mlaunch start
313
+
```
295
314
296
315
1. Create an environment variable named `MONGODB_URI` that stores the URI of the sharded cluster you just created. For example: `export MONGODB_URI="mongodb://host1,host2/"`
297
316
1. Install the HAProxy load balancer. For those on macOS, you can install HAProxy with `brew install haproxy`.
0 commit comments