State server is set up on a server with installed BI server.
To set up state server based on Redis:
Create the Statable parameters of the REG_DWORD type with the 1 value in the registry key [HKLM\SOFTWARE\Foresight\Foresight Analytics Platform\10.0\PP\BIS\System\Session] or with the Yes value in the identical section of the settings.xml file.
Create the StateServer subsection in the registry key [HKLM\SOFTWARE\Foresight\Foresight Analytics Platform\10.0\PP\BIS\System] or in the identical section of the settings.xml file. Fill in the subsection with state server connection parameters:
Type. State server type: Redis.
Host. IP address or DNS state server name, via which queries will be sent from BI server to state server. If BI server and state server are located at the same host, use "localhost"
Port. Number of the port that will be used for connection. If the parameter is set to -1, the default port is used: 6379.
ExpireTime. Records storing time in seconds on state server. If the parameter is not set or is equal to 0, records are stored infinitely.
NOTE. To use state server, monikers must be generated by BI server via GUID (the KeyIncr parameter in settings must be set to 0).
The example of settings in the settings.xml file:
<Configuration>
<Root>
<Key Name="PP">
<BIS>
<Key Name="System">
<Session KeyIncr="0" Statable="Yes" />
<StateServer Type="Redis" Host="state-server.sample.com" Port="6379" ExpireTime="3600" />
</Key>
</BIS>
</Key>
</Root>
</Configuration>
See also: