Inter-Server Communication - Mesh
Last updated
Last updated
Diarkis servers can communicate with each other to fetch information or synchronize data from other servers, and execute specific operations.
Configuration is performed for each HTTP/TCP/UDP server.
When executing diarkisexec.SetupDiarkis() 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.
Key | Default | Description |
---|---|---|
nic
"eth0"
The name of the interface used to obtain the address. Used if the address is not specified.
marsAddress
"127.0.0.1"
Address of the UDP server to bind to.
marsPort
"6779"
The port for the UDP server to bind to. The UDP server will automatically find an available port starting from the specified port.
marsAddressCacheTTL
60
The TTL for the MARS address cache.
retryInterval
1000
Interval for retrying Mesh packets (milliseconds).
reliableRetryTimeout
3000
Timeout for Mesh packets (milliseconds).