Outline
This chapter describes the setup of a fail-safe (remote) session store for nevisProxy using two MariaDB database hosts with data replication. The setup is tested with MariaDB version 10.2.14.
In this explanation, the database hosts are called "host-db1" and "host-db2". The replication is enabled in both directions (master/master setup), so that each host is a replication master and a replication slave at the same time. The replication is enabled for a single database called "replicated_session_store". You have to perform the instructions on both hosts (unless otherwise stated).