IcingaDB on every master?

Hi,

we followed the https://icinga.com/blog/2020/10/01/how-to-set-up-high-availability-masters/ guide to add a second master to our environment.

Can the IcingaDB component safely run on both master nodes or should their only be one active IcingaDB service? Is some additional configuration required for HA? I only could find IDO HA guides…

Thanks Markus

You didn’t stumble upon this I reckon :sweat_smile:

Well okay :grinning:

Seems so work fine:

Jul 28 12:43:59  monit2 systemd[1]: Starting Icinga DB...
Jul 28 12:43:59  monit2 icingadb[263902]: Starting Icinga DB
Jul 28 12:43:59  monit2 icingadb[263902]: Connecting to database at ' mariadb1:0'
Jul 28 12:43:59  monit2 systemd[1]: Started Icinga DB.
Jul 28 12:43:59  monit2 icingadb[263902]: Connecting to Redis at 'localhost:6380'
Jul 28 12:44:02  monit2 icingadb[263902]: Waiting for Icinga 2 to write into Redis, please make sure you have started Icinga 2 and the Icinga DB feature is enabled
Jul 28 12:44:54  monit2 icingadb[263902]: Starting history sync
Jul 28 12:44:55  monit2 icingadb[263902]: heartbeat: Received Icinga heartbeat
Jul 28 12:44:55  monit2 icingadb[263902]: high-availability: Another instance is active