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 小时前
MySQL数据库之DBA命令
数据库·网络协议·mysql·http·单元测试·prometheus·dba
ybb_ymm14 小时前
mysql8在linux下的默认规则修改
linux·运维·数据库·mysql
倔强的石头_15 小时前
Navicat Premium 与金仓数据库融合实践:高效管理国产数据库新方案
数据库
程序新视界15 小时前
为什么要尽量将MySQL表字段要设置为NOT NULL?
数据库·mysql·dba
怪兽201415 小时前
SQL优化手段有哪些
java·数据库·面试
lypzcgf16 小时前
FastbuildAI后端数据库模块注册分析
数据库·ai应用·ai创业·智能体平台·ai应用平台·agent平台·fastbuildai
xyy202517 小时前
Spring事务的传播方式
java·数据库·spring
非凡的世界17 小时前
Thinkphp8 Redis队列与消息队列topthink/think-queue 原创
数据库·redis·bootstrap·thinkphp
yookay zhang17 小时前
DM线程的管理知识学习
数据库