mongodb复制集配置
#more /opt/mongodb3.0/mongodb_im_conf_47020/mongodb3.0_im_47020.cnf
dbpath = /opt/mongodb3.0/mongodb_im_data_47020/ # 指定数据库路径
logpath = /opt/mongodb3.0/mongodb_im_log_47020/mongodb.log # 日志路径
logappend = true # 以追加的方式写日志
port = 47020 # 指定端口号,默认47020
fork = true # 以子进程方式运行
quiet = true # disables all but the most critical entries in output/log file.
auth = true # 增加验证选项
#bind_ip = 127.0.0.1,172.18.12.2,172.18.12.3
keyFile=/opt/mongodb3.0/keyFile
directoryperdb = true # 每个db 存放在单独的目录中
wiredTigerDirectoryForIndexes = true
maxConns = 1000000
nohttpinterface = true
rest = false
profile=1
slowms=1000
storageEngine=wiredTiger
###Replication Options
replSet = im
oplogSize = 4096
#more /opt/mongodb3.0/mongodb_im_conf_47018/mongodb3.0_im_47018.cnf
dbpath = /opt/mongodb3.0/mongodb_im_data_47018/ # 指定数据库路径
logpath = /opt/mongodb3.0/mongodb_im_log_47018/mongodb.log # 日志路径
logappend = true # 以追加的方式写日志
port = 47018 # 指定端口号,默认47018
fork = true # 以子进程方式运行
quiet = true # disables all but the most critical entries in output/log file.
auth = true # 增加验证选项
#bind_ip = 127.0.0.1,172.18.12.2,172.18.12.3
keyFile=/opt/mongodb3.0/keyFile
directoryperdb = true # 每个db 存放在单独的目录中
wiredTigerDirectoryForIndexes = true
maxConns = 1000000
nohttpinterface = true
rest = false
profile=1
slowms=1000
storageEngine=wiredTiger
###Replication Options
replSet = im
oplogSize = 4096
#more /opt/mongodb3.0/mongodb_im_conf_47019/mongodb3.0_im_arbiter_47019.cnf
dbpath = /opt/mongodb3.0/mongodb_im_data_arbiter_47019/ # 指定数据库路径
logpath = /opt/mongodb3.0/mongodb_im_log_arbiter_47019/mongodb.log # 日志路径
logappend = true # 以追加的方式写日志
port = 47019 # 指定端口号,默认47019
fork = true # 以子进程方式运行
quiet = true # disables all but the most critical entries in output/log file.
auth = true # 增加验证选项
#bind_ip = 127.0.0.1,172.18.12.2,172.18.12.3
keyFile=/opt/mongodb3.0/keyFile
directoryperdb = true # 每个db 存放在单独的目录中
wiredTigerDirectoryForIndexes = true
maxConns = 1000000
nohttpinterface = true
rest = false
profile=1
slowms=1000
storageEngine=wiredTiger
###Replication Options
replSet = im
oplogSize = 4096
#more keyFile
this is a key file created by zhangyb used to auth by replica set members each OTHER
#ps -ef | grep mongodb
root 1601 1 0 2015 ? 1-15:45:22 /var/mongodb3.0/bin/mongod --config /opt/mongodb3.0/mongodb_im_conf_47018/mongodb3.0_im_47018.cnf
root 1622 1 0 2015 ? 21:02:42 /var/mongodb3.0/bin/mongod --config /opt/mongodb3.0/mongodb_im_conf_47019/mongodb3.0_im_arbiter_47019.cnf
root 1709 1 0 2015 ? 1-13:18:03 /var/mongodb3.0/bin/mongod --config /opt/mongodb3.0/mongodb_im_conf_47020/mongodb3.0_im_47020.cnf
ohu 4309 1 0 2015 ? 20:58:04 /opt/mongodb_one/mongodb/bin/mongod --port 27027 --dbpath /opt/mongodb_one/data/27027 --logpath /opt/mongodb_one/data/logs/27027.log --logappend --fork --nojournal --maxConns 20000
mongodb复制集配置的更多相关文章
- spring mongodb 复制集配置(实现读写分离)
注:mongodb当前版本是3.4.3 spring连接mongodb复制集的字符串格式: mongodb://[username:password@]host1[:port1][,host2[: ...
- Windows 下MongoDB复制集配置
1.下载服务.https://www.mongodb.com/ 点击products 下拉第二列MongoDB server 选择 4.0.6 2.下载下来后 有限管理员运行 一路安装,可以不用 ...
- replcation set (复制集)配置过程 --mongodb
一,配置规划 复制集原理(基本构成是1主2从的结构,自带互相监控投票机制(Raft(MongoDB) Paxos(mysql MGR 用的是变种))如果发生主库宕机,复制集内部会进行投票选举,选择一 ...
- MongoDB 复制集节点增加移除及节点属性配置
复制集(replica Set)或者副本集是MongoDB的核心高可用特性之一,它基于主节点的oplog日志持续传送到辅助节点,并重放得以实现主从节点一致.再结合心跳机制,当感知到主节点不可访问或宕机 ...
- MongoDB复制集原理、环境配置及基本测试详解
一.MongoDB复制集概述 MongoDB复制集实现了冗余备份和故障转移两大功能,这样能保证数据库的高可用性.在生产环境,复制集至少包括三个节点,其中一个必须为主节点,一个从节点,一个仲裁节点.其中 ...
- MongoDB 复制集 (一) 成员介绍
一 MongoDB 复制集简介 MongoDB的复制机制主要分为两种: Master-Slave (主从复制) 这个已经不建议使用 ...
- MongoDB复制集之将现有的单节点服务器转换为复制集
服务器情况: 现有的单节点 Primary 192.168.126.9:27017 新增的节点 Secondry 192.168.126.8:27017 仲裁节点 ...
- mongodb 复制集
mongodb 复制集 复制集简介 Mongodb复制集由一组Mongod实例(进程)组成,包含一个Primary节点和多个Secondary节点,Mongodb Driver(客户端)的所有数据都写 ...
- Raft与MongoDB复制集协议比较
在一文搞懂raft算法一文中,从raft论文出发,详细介绍了raft的工作流程以及对特殊情况的处理.但算法.协议这种偏抽象的东西,仅仅看论文还是比较难以掌握的,需要看看在工业界的具体实现.本文关注Mo ...
随机推荐
- springMVC的一些工具类
springMVC的一些工具类,主要有转换器,读取器 读取文件: package cn.edu.hbcf.common.springmvc; import java.util.HashMap; imp ...
- [Linux] AWK命令详解(大全)
转载自:http://caoyanbao.iteye.com/blog/570868 什么是awk? 你可能对UNIX比较熟悉,但你可能对awk很陌生,这一点也不奇怪,的确,与其优秀的功能相比,awk ...
- 自定义Notification
private static void updateProgressNotification(Context cxt, int appsCount, int percent, String appNa ...
- Linux查看硬件配置信息
转自:http://blog.163.com/yang_jianli/blog/static/1619900062010391127338/ 一:查看cpu more /proc/cpuinfo | ...
- 推荐:移动端前端UI库—Frozen UI、WeUI、SUI Mobile
Frozen UI 自述:简单易用,轻量快捷,为移动端服务的前端框架. 主页:http://frozenui.github.io/ 开发团队:QQVIP FD Team Github:https:// ...
- Java Hour 47 WeatherInfo 保存到数据库
经历了上周简单的休整以后,我们继续Hibernate 之旅. 保存到数据库 private void saveWeatherInfo(Weatherinfo weatherInfo) { // Sav ...
- poj 1811 大数分解
模板 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<time.h> ...
- 免费电子书:微软Azure基础之Azure Automation
(此文章同时发表在本人微信公众号"dotNET每日精华文章") Azure Automation是Azure内置的一项自动化运维基础功能,微软为了让大家更快上手使用这项功能,特意推 ...
- emacs入门
emacs入门 复制: 用Ctrl-@ 设置起点, 然后移动光标到终点, 为了确认你的起点和终点,可以用 C-x C-x 将光标在起点和终点间切换,如果没问题了,可以用 Alt-w 来复制. 再找一个 ...
- flume与Mosquitto的集成
文章来自:http://www.cnblogs.com/hark0623/p/4173714.html 转发请注明 因业务需求,需要flume收集MQTT(Mosquitto)的数据. 方法就是 ...