Inter-server Communication - Mesh
Last updated
Was this helpful?
Last updated
Was this helpful?
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 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.
nic
"eth0"
The name of the interface from which to obtain the address. Used when an address is not specified.
marsAddress
"127.0.0.1"
The address to bind the UDP server 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).