See the following post about how the primary node is chosen.
Hi,
I have setup icinga in ha master with one db node, and two masters, as in the ‘Icinga2 Distributed Monitoring’ described Setup works well, and master role and db connection are changed after a few seconds as expected.
My problem is, that the master2 always gets active and master1 pauses his IDO connection.
But I think master01 should keep his connection, also when master2 gets back online.
Is there an option that can affect this behave?
Hope someone can tell me where’s my mistake.
Icin…
also i couldn’t get any info about setting up dedicated database server except for adding the ip in ido->mysql.conf…Could you also please help with this
you have read through the documentation? because it does discuss this, if you have 2 databases, you setup will be more complicated, because you need to synchronize the databases. (HA dual master with local database or Implementing HA Master-Master setup - #4 by log1c )