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 ...
随机推荐
- [Android Memory] Android Lint简介(转载)
英文原文:http://tools.android.com/tips/lint 参照文章:http://blog.csdn.net/thl789/article/details/8037473 转载 ...
- [Android Pro] android 混淆文件project.properties和proguard-project.txt
参考文档:http://blog.csdn.net/xueyepiaoling/article/details/8202359转载自:http://glblong.blog.51cto.com/305 ...
- 工作空间项目不存在,eclipse中项目删不掉
解决:E:\androidworkspaceall\.metadata\.plugins\org.eclipse.core.resources\.projects ->删除对应项目
- 修改iptables防火墙规则解决vsftp登录后不显示文件目录的问题
如果设置防火墙开端口可能只是常用的几个端口,这样很可能导vsftpd在被动模式时无法启动随机端口,从而造成客户端的FTP无法列出目录这样胡问题.解决方式很简单,给 vsftpd增加随机端口范围,然后把 ...
- oracle 10g 学习之oracle管理(3)
怎样将预先写好的sql脚本执行? select * from employees;→107条记录 利用 Oracle 企业管理器连接数据库服务器 点击打开以下界面: 此时已经连接成功了 用 Oracl ...
- 一个非常简单的返回局部字符数组的C语言程序, 请问其输出结果?
以下是该无聊的程序: #include <stdio.h> #include <string.h> char* get_str() { int x[10]; c ...
- win32_11gR2_database安装教程
- ThinkPHP3.2判断是否为手机端访问并跳转到另一个模块的方法
目录结构 公共模块Common,Home模块,Mobile模块 配置Application/Common/Conf/config.php文件 'MODULE_ALLOW_LIST' => 'Ho ...
- java程序员必须会的技能
1.语法:必须比较熟悉,在写代码的时候IDE的编辑器对某一行报错应该能够根据报错信息知道是什么样的语法错误并且知道任何修正. 2.命令:必须熟悉JDK带的一些常用命令及其常用选项,命令至少需要熟悉:a ...
- LR结构图