sh.getBalancerHost()

sh.getBalancerHost()

Deprecated since version 3.4自3.4版以来已弃用: Starting in 3.4, the balancer runs on primary of CSRS. The primary of CSRS holds the "balancer" lock, using a process id named "ConfigServer". :从3.4开始,平衡器在CSRS的主服务器上运行。CSRS的主进程使用名为“ConfigServer”的进程id持有“balancer”锁。This lock is never released.此锁从未松开。

←  sh.enableSharding()sh.getBalancerState() →