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 ...
随机推荐
- poj 1007 DNA Sorting 解题报告
题目链接:http://poj.org/problem?id=1007 本题属于字符串排序问题.思路很简单,把每行的字符串和该行字符串统计出的字母逆序的总和看成一个结构体.最后把全部行按照这个总和从小 ...
- git revert 用法
git revert 撤销 某次操作,此次操作之前和之后的commit和history都会保留,并且把这次撤销作为一次最新的提交 * git revert HEAD ...
- ASP.Net核心对象之HttpResponse
简介: HttpResponse是对响应报文进行设置的一个对象.通过context. Response 能够得到HttpResponse对象. context.Response.Charset;//获 ...
- 使用webstorm调试node程序
前言 相信大家接触过不少node代码了,如果你应用的比较初级或者针对你的项目不需要接触过深的node代码,也许你仅仅需要简单的console.log('your variable')就完全满足你的需要 ...
- struts2 标签问题----escape="false" 这个属性
1.在编程过程中,会遇到这个动西,escape="false" eg: <s:fielderror escape="false"/>-------& ...
- 【Chrome】手动下载和安装Adblock Plus的方法
由于强大的GFW,导致很多Google的站点没法访问,也就没法直接安装chrome的插件了,网页都打不卡, 那么几乎是必备的Adblock Plus如何下载安装呢? 1.访问官方网站: https:/ ...
- open(/dev/ietctl, O_RDWR) 参数含义(转载)
这是文件I/O的常用函数,open函数,open函数用来打开一个设备,他返回的是一个整型变量,如果这个值等于-1,说明打开文件出现错误,如果为大于0的值,那么这个值代表的就是文件描述符.一般的写法是i ...
- _EPROCESS结构简单了解!
_EPROCESS结构简单了解! lkd> dt _EPROCESSnt!_EPROCESS +0x000 Pcb : _KPROCESS +0x06c Pro ...
- QUnit使用笔记-1判断方法
QUnit是一个前端测试工具. 判断效果: html基本结构: <h1 id="qunit-header">QUnit</h1> <h2 id=&qu ...
- MVC _ViewStart文件的作用
指定目录下的所有文件均继承自 某个Layout. 支持最近原则. 参考:http://www.cnblogs.com/iamlilinfeng/archive/2013/02/28/2934397.h ...