Hi,

you'll need to run at least 3 MongoDB nodes for a Replica Set.

Please refer to the following links for details on how to setup a Replica 
Set in MongoDB:

   - https://docs.mongodb.org/manual/replication/
   - https://docs.mongodb.org/manual/administration/replica-sets/
   - https://docs.mongodb.org/manual/tutorial/deploy-replica-set/
   
Once the MongoDB Replica Set is running, you can configure Graylog to use 
it with the mongodb_uri setting: 
https://github.com/Graylog2/graylog2-server/blob/1.2.2/misc/graylog2.conf#L318-L319


Cheers,
Jochen

On Tuesday, 24 November 2015 08:52:51 UTC+1, Dương Quang Thọ wrote:
>
> Dear anyone,
> Now I have just setup 2 graylog-server, 2 ES node, 1 web-interface, 1 
> MongoDB node. I want to expend to 2 MongoDB node. Please advise about 
> configuration on MongoDB and Graylog-server. I use MongoDB ver 3.0.
>
> # where to write logging data.
> systemLog:
>   destination: file
>   logAppend: true
>   path: /var/log/mongodb/mongod.log
>
> # Where and how to store data.
> storage:
>   dbPath: /var/lib/mongo
>   journal:
>     enabled: true
> #  engine:
> #  mmapv1:
> #  wiredTiger:
>
> # how the process runs
> processManagement:
>   fork: true  # fork and run in background
>   pidFilePath: /var/run/mongodb/mongod.pid  # location of pidfile
>
> # network interfaces
> net:
>   port: 27017
>   bindIp: <IP pulic server>  # Listen to local interface only, comment to 
> listen on all interfaces.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/4d0fe063-79f6-422d-8b64-2f8036fb78ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to