# Inter-server Communication - Mesh

Diarkis servers can communicate with each other to fetch information or synchronize data from other servers, and execute specific operations.

## Mesh Configuration

Configuration is performed for each HTTP/TCP/UDP server.

When executing [diarkisexec.SetupDiarkis()](https://docs.diarkis.io/docs/server/v1.0.0-rc1/diarkis/diarkisexec/index.html) on each server, specify the path to the JSON file and describe the MARS server address and settings as follows. If the path or JSON file keys are empty, the default settings will be used.

```json
{
  "nic": "eth0",
  "marsAddress": "mars.base.svc.cluster.local",
  "marsPort": "6779",
  "marsAddressCacheTTL": 60,
  "retryInterval": 1000,
  "reliableRetryTimeout": 3000
}
```

<table><thead><tr><th width="234">Key</th><th width="119">Default</th><th>Description</th></tr></thead><tbody><tr><td>nic</td><td>"eth0"</td><td>The name of the interface from which to obtain the address. Used when an address is not specified.</td></tr><tr><td>marsAddress</td><td>"127.0.0.1"</td><td>The address to bind the UDP server to.</td></tr><tr><td>marsPort</td><td>"6779"</td><td>The port for the UDP server to bind to. The UDP server will automatically find an available port starting from the specified port.</td></tr><tr><td>marsAddressCacheTTL</td><td>60</td><td>The TTL for the MARS address cache.</td></tr><tr><td>retryInterval</td><td>1000</td><td>Interval for retrying Mesh packets (milliseconds).</td></tr><tr><td>reliableRetryTimeout</td><td>3000</td><td>Timeout for Mesh packets (milliseconds).</td></tr></tbody></table>


---

# 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://help.diarkis.io/en/diarkis-server/mesh.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.
