MongoDB Replica Set Configuration

Source: Internet
Author: User

#more/opt/mongodb3.0/mongodb_im_conf_47020/mongodb3.0_im_47020.cnf

DBPath =/opt/mongodb3.0/mongodb_im_data_47020/# Specify the database path
LogPath =/opt/mongodb3.0/mongodb_im_log_47020/mongodb.log # log path
Logappend = true # writes the log in an appended way
Port = 47020 # Specify port number, default 47020
Fork = true # runs in child process mode
Quiet = true # disables all, and the most critical entries in Output/log file.
Auth = true # increase validation options
#bind_ip = 127.0.0.1,172.18.12.2,172.18.12.3
Keyfile=/opt/mongodb3.0/keyfile
Directoryperdb = true # Each db is stored in a separate directory
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/# Specify the database path
LogPath =/opt/mongodb3.0/mongodb_im_log_47018/mongodb.log # log path
Logappend = true # writes the log in an appended way
Port = 47018 # Specify port number, default 47018
Fork = true # runs in child process mode
Quiet = true # disables all, and the most critical entries in Output/log file.
Auth = true # increase validation options
#bind_ip = 127.0.0.1,172.18.12.2,172.18.12.3
Keyfile=/opt/mongodb3.0/keyfile
Directoryperdb = true # Each db is stored in a separate directory
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/# Specify the database path
LogPath =/opt/mongodb3.0/mongodb_im_log_arbiter_47019/mongodb.log # log path
Logappend = true # writes the log in an appended way
Port = 47019 # Specify port number, default 47019
Fork = true # runs in child process mode
Quiet = true # disables all, and the most critical entries in Output/log file.
Auth = true # increase validation options
#bind_ip = 127.0.0.1,172.18.12.2,172.18.12.3
Keyfile=/opt/mongodb3.0/keyfile
Directoryperdb = true # Each db is stored in a separate directory
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 of the 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 Replica Set Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.