One way to accomplish this:
Store the host and port of the mongos that has the balancer lock within the balancer lock document in the config.locks collection.
One way to accomplish this:
Store the host and port of the mongos that has the balancer lock within the balancer lock document in the config.locks collection.