对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

rs.freeze()(mongosh方法)

rs.freeze(seconds)

使当前副本集节点在指定时间段内没有资格成为节点。

重要

mongosh 方法

This page documents a mongosh method. This is not the documentation for database commands or language-specific drivers, such as Node.js.

有关数据库命令,请参阅 replSetFreeze 命令。

如需了解 MongoDB API 驱动程序,请参阅特定语言的 MongoDB 驱动程序文档。

The rs.freeze() method has the following parameter:

Parameter
类型
说明

seconds

数字

成员没有资格成为主节点的持续时间。

此方法可用于以下环境中托管的部署:

给本页内容打分

在此页面上