images\cherry_red.png1 Docker的学习-gaogaoTwo
      images\cherry_blue.png1.1 docker常见问题故障
         images\cherry_orange.png1.1.1 docker容器无法远程连接MySQL
      images\cherry_blue.png1.2 Docker基础命令
         images\cherry_orange.png1.2.1 docker logs
         images\cherry_orange.png1.2.2 镜像构建优化
         images\cherry_orange.png1.2.3 network
         images\cherry_orange.png1.2.4 内部安装应用命令
         images\cherry_orange.png1.2.5 docker ps
      images\cherry_blue.png1.3 Docker网络模式
      images\cherry_blue.png1.4 docker compose
         images\cherry_orange.png1.4.1 docker-compose安装
      images\cherry_blue.png1.5 部署Tomcat 运行环境
      images\cherry_blue.png1.6 docker(compose) LNMP环境的部署
      images\cherry_blue.png1.7 docker 搭建部署Redis集群
      images\cherry_blue.png1.8 docker 搭建部署MongoDB集群
         images\cherry_orange.png1.8.1 MongoDB(configsvr)配置服务器
         images\cherry_orange.png1.8.2 MongoDB(shared) 分片初始化操作
         images\cherry_orange.png1.8.3 配置MongoDB(Mongos)路由服务器
         images\cherry_orange.png1.8.4 MongoDB测试集群可用性
      images\cherry_blue.png1.9 docker 搭建部署MySQL主从复用
      images\cherry_blue.png1.10 docker+Keepalived+Nginx高可用
      images\cherry_blue.png1.11 docker+Ansible多节点集群管理
      images\cherry_blue.png1.12 docker(compose)+Zabbix 多节点监控服务
      images\cherry_blue.png1.13 docker 部署文件目录下载
      images\cherry_blue.png1.14 docker
         images\cherry_orange.png1.14.1 docker镜像管理
         images\cherry_orange.png1.14.2 docker容器
         images\cherry_orange.png1.14.3 docker容器高级操作
阿里云购买 3台服务器
47.104.137.201
172.17.140.41

118.190.147.126
172.17.140.42

47.104.6.1
172.17.140.43

Mongodb集群架构图 3 台服务器

47.104.137.201118.190.147.12647.104.6.1
172.17.140.41:9001(configsvr)172.17.140.42:9001(configsvr)172.17.140.43:9001(configsvr)
172.17.140.41:27017(mongos)172.17.140.42:27017(mongos)172.17.140.43:27017(mongos)
172.17.140.41:9005(主节点)172.17.140.42:9005(从节点)172.17.140.43:9005(仲裁节点)
172.17.140.41:9006(仲裁节点)172.17.140.42:9006(主节点)172.17.140.43:9006(从节点)
172.17.140.41:9007(从节点)172.17.140.42:9007(仲裁节点)172.17.140.41:9007(主节点)

每一台服务器 分别拥有 3 个切片 shard(一主一从一仲裁) + 1个 路由服务器 + 1个配置服务器 configsvr

configsvr 配置服务器
172.17.140.41:9001
172.17.140.42:9001
172.17.140.43:9001

mongos 路由服务器
172.17.140.41:27017
172.17.140.42:27017
172.17.140.43:27017

shard1 分片1
172.17.140.41:9005 主节点
172.17.140.42:9005 从节点
172.17.140.43:9005 仲裁节点

shard2 分片2
172.17.140.41:9006 仲裁节点
172.17.140.42:9006 主节点
172.17.140.43:9006 从节点

shard3 分片3
172.17.140.41:9007 从节点
172.17.140.42:9007 仲裁节点
172.17.140.43:9007 主节点