Shared Database
Warning
Mideye Server 5 is no longer updated, and new installations are not supported. Only existing Mideye Server 5 installations and upgrades are supported. Please use Mideye Server 6 for new installations and continued support.
To create a Mideye Server cluster, two or more Mideye Servers can be configured to use the same database. Changes made in any Mideye Server will propagate in real-time to the other servers.
There are two exceptions that require manual update on all servers
- If a RADIUS-server is added or changed a manual restart of the service is required on all other servers.
- When adding LDAPS or GUI certificates, these must be manually imported on all other servers.
Only one of the servers in a cluster should be configured to execute scheduled database cleanup.
Cluster settings¶
In case two or more Mideye Servers are configured to share the same database, only one of them should be configured to execute scheduled database cleanup (cluster leader).
In the server(s) not intended to be cluster learders, open as an administrator:
- Linux:
/opt/mideyeserver/config/application-prod.yml
- Windows:
C:\Program Files (x86)\Mideye Server 5\config\application-prod.yml
Navigate to the application section and add (or modify)
See example below:application:
switch-host: primary.mideye.com
switch-backup-host: secondary.mideye.com
switch-port: XXXXX
log-path: /opt/mideyeserver/log
# In case the Mideye server is running in a cluster with
# multiple instances against a clustered database
# set this to false in the minion instances to prevent
# potential deadlocks for scheduled cleanup jobs.
# The default value is true as this is the commonly used setup.
cluster-leader: false