Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
master selection for nomad cluster (#748)
Browse files Browse the repository at this point in the history
* document automaster for nomad

After Graylog2/graylog-docker@619aca5 is added to the docker image this is the final documentation of this.

* reword

* reword after comments

Took the rewording of @ChristopherKB
  • Loading branch information
jalogisch committed Dec 17, 2019
1 parent bfc64b0 commit 3584577
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/installation/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,13 @@ For a stateful set, the name of the first pod in a cluster always ends with ``-0
* Verify that the pod name ends in ``-0``
* Set ``is_master=true`` for this container

Nomad automatic master selection
================================

When running Graylog in a Nomad cluster, you must ensure that only one node in the cluster has the setting ``is_master=true`` in the server.conf file.

Whether the container is running on Nomad may be identified with an environmetal check on NOMAD_ALLOC_INDEX. Should that variable be set to 0, the container will set Graylog to ``is_master=true``. If the variable is set to anything other than 0 , it will set Graylog to ``is_master=false``.


Troubleshooting
===============
Expand Down

0 comments on commit 3584577

Please sign in to comment.