[TOC] > [参考](https://blog.csdn.net/qq_35663625/article/details/99622231) ## code ``` mongos> sh.getBalancerState() // true mongos > db.settings.update({ _id : "balancer" }, { $set : { activeWindow : { start : "23:00", stop : "6:00" } } }, true ) ; //查看设置 mongos > db.settings.find(); // 删除 Balancer mongos > db.settings.update({ "_id" : "balancer" }, { $unset : { activeWindow : 1 }}); ```