To improve fault tolerance, each configuration can have a BI servers cluster implemented. If two or more BI servers are used, it is recommended to add a state server to the configuration, which will restore object parameters in case of failure of the requested BI server.
NOTE. A state server is not included in the software package of Foresight Analytics Platform.
As a state server, the platform works with Redis, Memcached, Radix, and Tarantool. In order a Memcached-based state server works, install OpenSSL libraries.
To use a state server in the platform, one should determine additional settings. See the required subsection:
To set up authentication on the state server, see the Setting Up Authentication on State Server section.
Working with BI server, after executing queries to change objects, their states (moniker and parameters required to restore the object) are saved at the state server and loaded from the server on further addressing the objects. The security manager and various repository objects allow for saving states.
The objects that support state saving:
To provide continuous work of BI server, make sure that the state server is available. To set up and start the state server, use the recommendations given in Redis/Memcached/Radix/Tarantool guides according to the size of the created system.
By default, MemCached/Radix/Tarantool uses memory fragments with the size of 1 MB used for storing information. When an information block is being created in the platform, information in which is saved to the MemCached/Radix/Tarantool state server and required for object restoring, the size of the obtained block exceeds 1 MB. To resize the memory fragment:
Use the -I <N bytes> key during MemCached startup, one can also use the K and M suffixes to specify the volume in kilobytes or megabytes.
For the Radix/Tarantool state server use the memtx.max_tuple_size parameter. Take into account the value of the memtx.memory parameter and, if required, change it.
It is not recommended to increase memory fragment size without necessity because this directly affects system performance and the amount of memory required for work.
If issues occur during communication between the platform and the state server, connection loss, freeze of system components, analyze logs of BI server and state server. In case of difficulties with issue solving, contact technical support by sending a request to support@fsight.ru or technical support services that are available after registration at the website.
See also: