# Graylog two node Cluster

**URL:** <https://community.graylog.org/t/graylog-two-node-cluster/2331>\
**Category:** Graylog Central (peer support)\
**Created:** [September 1, 2017, 3:44pm UTC](https://community.graylog.org/t/graylog-two-node-cluster/2331 "2017-09-01T15:44:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![xorloader41](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/xorloader41/32/848_2.png) [@xorloader41](https://community.graylog.org/u/xorloader41)\
**Post date:** [September 1, 2017, 3:44pm UTC](https://community.graylog.org/t/graylog-two-node-cluster/2331/1 "2017-09-01T15:44:29Z")

</div>

Hi Friends,

Currently in our production we are running single node Graylog + ES + MongoDB. We just want to move beyond as our log flow increases day by day.

Our idea is to bring another node with Graylog + ES + MongoDB. Now, for both ES, Graylog we are getting more performance and space to store more logs. There is no problem in forming ES cluster. But Graylog clustering is not happening.

I configured Primary node as is\_master=true and other with is\_master=false.

I followed following article.

> **[Growing From Single Server to Graylog Cluster | The Graylog Blog](https://www.graylog.org/post/back-to-basics-from-single-server-to-graylog-cluster)**
>
> In our second Back to Basics post, we'll walk through the process of scaling your environment from one Graylog server to a Graylog cluster.

But the second Graylog node is not joining to the cluster and If I login to the Graylog WebUI I am only seeing only one node. Please note that this is to expand the capacity not to provide the HA.

Here we are not using and LB and want to use one WebUI to manage both the ES nodes. My question here, though master graylog manages both ES, will it share the Graylog processing loads (We have a lot of GROK)

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [September 1, 2017, 4:27pm UTC](https://community.graylog.org/t/graylog-two-node-cluster/2331/2 "2017-09-01T16:27:16Z")

</div>

Hej @xorloader41

did both Graylog Nodes share the same MongoDB? I want to highly this part of the reference:

> **As nearly all configuration of your Graylog setup is stored in MongoDB, make sure it is reachable for every new Graylog node you add to the setup.** If you will be adding just one Graylog node, you can move to the next step. If you are adding more than one node or want high-availability (HA) for MongoDB, please take a look at our FAQ on scaling MongoDB.

---

<div class="post-metadata">

**Author:** ![xorloader41](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/xorloader41/32/848_2.png) [@xorloader41](https://community.graylog.org/u/xorloader41)\
**Post date:** [September 4, 2017, 7:57am UTC](https://community.graylog.org/t/graylog-two-node-cluster/2331/3 "2017-09-04T07:57:57Z")

</div>

Hi Jan,

Nope. Both have its own MongoDB. MongoDB replicas I am not going to enable. Only Graylog and ES will form the cluster. All the metadata of Graylogs will be stored in its own MongoDB. Do you think this will create a problem as these DB’s are not talking each other ?

---

<div class="post-metadata">

**Author:** ![derPhlipsi](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/derphlipsi/32/38_2.png) [@derPhlipsi](https://community.graylog.org/u/derPhlipsi)\
**Post date:** [September 4, 2017, 8:42am UTC](https://community.graylog.org/t/graylog-two-node-cluster/2331/4 "2017-09-04T08:42:55Z")

</div>

Hey @xorloader41,

of course this will be a problem. If both Graylog-instances are configured differently, inconsistencies will happen, causing your system to not work like intended. As far as my experience with Graylog goes, Graylog definelty does not like it when it’s nodes go out of sync, because e.g. the MongoDB cluster fails and configuration changes are not applied on all nodes because of that. So, I would recommend you to set up a MongoDB replica, because else your system might not work (at least I never heard of two independent Graylog-instances writing into the same indexes, but a Graylog-Dev will probably be able give a more exact answer than mine)

What you could do is to let each Graylog-instance write into it’s own index-set, but then you won’t be able to search all data at once, since Graylog would then just act as if it were two independent installations.

Greetings - Phil

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [September 4, 2017, 9:08am UTC](https://community.graylog.org/t/graylog-two-node-cluster/2331/5 "2017-09-04T09:08:13Z")

</div>

@derPhlipsi already said the important part @xorloader41 - if both Graylog instances did not share the MongoDB they are both not a cluster but single node installations.

---

<div class="post-metadata">

**Author:** ![xorloader41](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/xorloader41/32/848_2.png) [@xorloader41](https://community.graylog.org/u/xorloader41)\
**Post date:** [September 4, 2017, 9:18am UTC](https://community.graylog.org/t/graylog-two-node-cluster/2331/6 "2017-09-04T09:18:44Z")

</div>

Thanks @jan. This is my confusing part and clarified. I will make sure both the Graylog pointing to the same MongoDB.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [September 18, 2017, 9:18am UTC](https://community.graylog.org/t/graylog-two-node-cluster/2331/7 "2017-09-18T09:18:58Z")

</div>

Closed on September 18, 2017, 9:18am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
