MongoDB Ops Manager部署

背景

多个项目使用多套不同的MongoDB数据库且跨云,跨地域。

面临agent与ops偶发性网络超时 备份公网流量流出过大等诸多问题。

计划在B云部署一套MongoDB ops manager用于管理B云上的MongoDB实例

规划

3节点,双硬盘,MongoDB副本集使用单独硬盘

先部署副本集MongoDB实例作为MongoDB ops manager的后端数据库

在3节点上部署MongoDB Ops manager实例

创建CLB实例及关联SSL证书转发80-443端口流量至后端MongoDB ops manger 8080端口

系统OS版本 CentOS8.3

MongoDB Ops Manager版本8.0版本

实施

部署3节点副本集

yum仓库配置略

MongoDB副本集配置

bash 复制代码
[root@xx-xx-mongo-ops01 ~]# cat /etc/mongod.conf 
# mongod.conf

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# where to write logging data.
systemLog:
  destination: file
  logAppend: true
  logRotate: rename
  path: /mongodb/opsrepl/log/mongod.log

# Where and how to store data.
storage:
  dbPath: /mongodb/opsrepl/
  journal:
    commitIntervalMs: 100
  directoryPerDB: true
  engine: wiredTiger
  wiredTiger:
    engineConfig:
      cacheSizeGB: 1
      directoryForIndexes: false

# how the process runs
processManagement:
  fork: true
  timeZoneInfo: /usr/share/zoneinfo

# network interfaces
net:
  port: 27017
  bindIp: 0.0.0.0   # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
  ipv6: false
  maxIncomingConnections: 51200


security:
  authorization: enabled
  clusterAuthMode: keyFile
  keyFile: /mongodb/opsrepl/keyfile
operationProfiling:
  mode: all
  slowOpThresholdMs: 100

replication:
  replSetName: opsrepl
#sharding:

## Enterprise-Only Options

#auditLog:

未完,待续loading...

reference

https://www.mongodb.com/zh-cn/docs/ops-manager/current/

相关推荐
神明不懂浪漫12 分钟前
【第二章】库、表、增删改查操作
开发语言·数据库·经验分享·笔记
其实防守也摸鱼19 分钟前
OpenClaw 深度解析:从原理到实战的完整指南
运维·服务器·数据库·github·copilot
hzp66624 分钟前
doris学习6:参数调优
数据库·doris·参数·数据库调优
盟道科技1 小时前
小程序电商订单超时自动取消的三种实现方案:定时扫描、Redis 过期监听、延迟消息对比与生产落地
数据库·redis·小程序
剑锋所指,所向披靡!1 小时前
MySQL存储引擎
数据库·mysql
reasonsummer1 小时前
【办公类-146-05】20260901《一分园、二分园四大教育》(优化版:标题excle+复制AI文字+Python占位符录入)
开发语言·数据库·c#
2301_800954991 小时前
关系型数据库与非关系型数据库详解
数据库·nosql
崖边看雾1 小时前
MySQL——SQL 经典练习题:学生选课成绩查询(附详细注释)
大数据·数据库·sql·mysql
众壹新能源科技1 小时前
经营口径与运维口径不一致时,发电量报表怎么对账
运维·数据库·人工智能
jyOverQ2 小时前
MySQL 索引为什么能加快查询?B+Tree 到底是什么?
数据库·mysql