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
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/"`
290
296
1. Install the HAProxy load balancer. For those on macOS, you can install HAProxy with `brew install haproxy`.
@@ -304,6 +310,8 @@ The following steps will walk you through how to start and test a load balancer.
304
310
A new file name `lb.env` is automatically created.
305
311
1. Source the environment variables using a command like `source lb.env`.
306
312
1. Export **each** of the environment variables that were created in `lb.env`. For example: `export SINGLE_MONGOS_LB_URI`.
313
+
1. Export the `LOAD_BALANCED` environment variable to 'true': `export LOAD_BALANCED='true'`
0 commit comments