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

修复主机故障

At time T, the Monitoring on host X had not detected a mongod process running on host Y port Z for A minutes.

您可以在项目级警报设置页面配置触发警报的警报条件。

要了解有关警报条件的更多信息,请参阅主机已关闭。

  • The mongod process could not be reached because of a network issue.

  • The mongod process is not running.

  • 主机已下电。

  • Verify network communication between the host running the Monitoring and the host that is listed as down. One way to do this is through mongosh:

    mongosh <hostname>:<port>

    If connecting from mongosh fails, try a basic ping test:

    ping <hostname>
  • Verify the mongod process is running:

    如果进程是从deb或rpm包安装的,请向服务管理器查询状态:

    sudo service mongod status

    或者,您可以使用ps :

    ps aux | grep mongo

注意

Host is down警报不应用于检测所有发生的主机重启情况。 仅当监控运行检查时主机被视为关闭时,才会触发警报。 检查间隔可以为 1 到 3 分钟。

Keep your host powered on and the mongod process running. Work to prevent any network issues.

查看以下图表以监控进度:

  • Network

    监控网络指标以追踪网络性能。

要了解更多信息,请参阅查看部署指标。