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/

相关推荐
馨谙4 分钟前
SELinux 文件上下文管理详解:从基础到实战
jvm·数据库·oracle
ClouGence9 分钟前
百草味数据架构升级实践:打造 Always Ready 的企业级数据平台
大数据·数据库·数据分析
川石课堂软件测试33 分钟前
Python | 高阶函数基本应用及Decorator装饰器
android·开发语言·数据库·python·功能测试·mysql·单元测试
.又是新的一天.44 分钟前
08-Jmeter数据驱动、数据库的操作、命令行执行方式
数据库·jmeter
LilySesy2 小时前
ABAP+如果在join的时候需要表1的字段某几位等于表2的字段的某几位,需要怎么做?
服务器·前端·数据库·sap·abap·alv
口_天_光健2 小时前
制造企业的数据目录编写
大数据·数据库·数据仓库·数据分析
mpHH2 小时前
postgresql pg_upgrade源码阅读--doing
数据库·postgresql
苦学编程的谢2 小时前
Redis_6_String
数据库·redis·缓存
秋已杰爱2 小时前
技术准备十:etcd
数据库·etcd
研究司马懿2 小时前
【ETCD】ETCD集群部署(TLS)
数据库·chrome·云原生·自动化·运维开发·etcd