Skip to content

Instantly share code, notes, and snippets.

@akito0190
Created December 28, 2018 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akito0190/c9cdfe4c557f8de370fba0f71b601941 to your computer and use it in GitHub Desktop.
Save akito0190/c9cdfe4c557f8de370fba0f71b601941 to your computer and use it in GitHub Desktop.
require 'mongo'
mongos_host = ['127.0.0.1:27020']
client = Mongo::Client.new(mongos_host)
client.command({balancerStop: 1})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment