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() 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",
"marsAddress": "mars.base.svc.cluster.local",
"marsPort": "6779",
"marsAddressCacheTTL": 60,
"retryInterval": 1000,
"reliableRetryTimeout": 3000
}
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).
Last updated
Was this helpful?