Skip to main content
Version: 8.2411.x.x RR

Setup of nevisProxy

Most of the nevisProxy configuration is the same for the replicated session store as for the "single-node" (normal) session store. Also in case of the replicated session store, the configuration is done with the MySQLSessionStoreServlet. Set up the MySQLSessionStoreServlet as usual, except for this parameter:

<init-param>
<param-name>ConnectString</param-name>
<param-value>replication://dbnode1:port1,dbnode2:port2/path</param-value>
</init-param>

For example:

<init-param>
<param-name>ConnectString</param-name>
<param-value>replication://nevisproxy-db5:3306,nevisproxy-db6:3306/replicated_session_store</param-value>
</init-param>

The package is delivered with a ready-to-use setup script located at: /opt/nevisproxy/sql/mariadb/sessionStoreSetup.sql

Once the two-way replication is enabled in MariaDB (see above), any change made to the replicated_session_store on one DB node is automatically replicated on the other node. Thus it is sufficient to run the setup script on one of the DB nodes only.