# Multi-Nodes

It is important to consider the name of the new Elasticsearch cluster. In most cases, in fact, the default name should be changed to avoid conflicts. This guide doesn't provide a step-by-step tutorial for building a multi-node LeonaLog cluster but does give some advice on questions that might arise during the setup.

## Requirements

Every server which is part of this setup has the software requirements installed to run the targeted software. All software requirements can be found in the installation manual.

We highly recommend that the system time on all systems is kept in sync via NTP or a similar mechanism. Needless to say that DNS resolution must be working, too.

In order to simplify the installation process, the servers should have a working Internet connection.

## MongoDB Replica Set

We recommend [deploying a MongoDB replica set](https://docs.mongodb.com/manual/tutorial/deploy-replica-set).

## Elasticsearch Cluster

The [Elasticsearch setup documentation](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/setup.html) should help you to install Elasticsearch with a robust base configuration.

## LeonaLog Multi-Node

After the installation of leona, you should take care that only one leona node is configured to be master with the configuration setting **`is_master = true`**.

The **`http_bind_address`** configured address needs to be reachable by all Graylog nodes in the cluster. The **`http_publish_uri`** is normally auto-generated from the `http_bind_address`. This URI is used for inter-node communication.

If the **`http_bind_address`** is configurated with 0.0.0.0 you must configure **`http_publish_uri`**. Otherwise leona will use the first non-loopback IP, what might not fit into your desired design.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ciusji.gitbook.io/leona/configuration/multi-nodes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
