Skip to content

High availability

Oriol edited this page Nov 7, 2025 · 1 revision

EAR is designed to provide support for those systems where High Availability (HA) of services/data is a must. Currently, just the EAR Database Manager and the EAR Database components offer HA support. The latter can be replaced by industry software like Galera Cluster.

EAR Database Manager HA

Database daemons can be configured and deployed in pairs following a server/mirror schema. Buffering before reporting to the Database is the main duty of this Daemon, so having a mirror ensures no data lose in the case the service stops or the node where it is being running fails unexpectedly. Both services buffer data, but just the server inserts it to the Database. If it fails, the mirror starts insertion process.

You can read how to configure two EAR Database Managers on the Configuration Guide's Island description section.

EAR Database HA

If the EAR Database is not deplyed on a HA system, you can manually configure EAR to report data on two databases. Just three actions must be performed:

  • Create two databases on two different servers. You have two ways:
    1. Use edb_create command.
    2. Use edb_create -o and redirect the output to a file. You will have the SQL query set saved to be executed directly in the DB server (mysql). *
  • Specify DBSECIP field in the ear.conf (and propagate changes).
  • Restart Database Manager daemons.
  • Only supported in mysql.

* You must add a semi-colon (;) at the end of each line.

Clone this wiki locally