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/

相关推荐
这个DBA有点耶4 天前
MVCC深入:Read View、版本链与快照读——InnoDB并发控制的内核
数据库·mysql·架构
DBA_G4 天前
从地面到云霄:GBase数据库在民航三大场景的落地实践
数据库
自由能燃气设备4 天前
商用全预混低氮冷凝锅炉免费方案vs付费方案对比+选型避坑指南
大数据·数据库·人工智能
科创致远4 天前
科创致远 ESOP 系统核心效能与实战价值展示
大数据·数据库·人工智能·精益工程
2601_962218614 天前
万象生鲜系统称重自动多退少补算法解决生鲜非标品痛点
大数据·数据库·人工智能·python·算法
张洛闻Eren4 天前
k8s云原生【第十课】:水平 Pod 自动扩缩容
运维·数据库·云原生·kubernetes·github
于平安4 天前
MySQL-触发器
数据库·mysql
白远山4 天前
上海24小时自助健身房解决方案实战指南与经验分享
java·数据库·架构·需求分析
Omics Pro4 天前
斯坦福Nature+Science|广义虚拟细胞基础大模型
数据库·人工智能·算法·机器学习·自然语言处理
2603_965148114 天前
AI+API选品:下一代智能商务助手雏形已现
java·大数据·数据库·人工智能·数据挖掘