Difference between revisions of "Icinga2: Haproxy- master/slave setup"

From ppwiki
Jump to navigation Jump to search
(Created page with "In This tutorial I will be setting up Icinga2 to use a database proxy (dbproxy) to connect to it's master database and fail-over to the slave database if master database is n...")
 
Line 2: Line 2:
  
 
=Prerequisites=
 
=Prerequisites=
 +
1 icinga2 server: icinga1001
 +
1 master database master server: db1001
 +
1 dbproxy server: dbproxy1001
 +
2 slaves database severs: db1002 and db1005
 +
 +
=Setup=
 +
==Existing configuration==
 +
In my existing configuration, I have Icinga2 connecting directly to the database master (db1001). See image below
 +
 +
[[file:icinga2.png]]
 +
 +
==New configuration==
 +
In the new configuration we will need to put a dbproxy between Icinga2 and the database master server. See image below
 +
 +
[[file:icinga21.png]]

Revision as of 20:02, 28 August 2019

In This tutorial I will be setting up Icinga2 to use a database proxy (dbproxy) to connect to it's master database and fail-over to the slave database if master database is not available for some reasons.

Prerequisites

1 icinga2 server: icinga1001 1 master database master server: db1001 1 dbproxy server: dbproxy1001 2 slaves database severs: db1002 and db1005

Setup

Existing configuration

In my existing configuration, I have Icinga2 connecting directly to the database master (db1001). See image below

Icinga2.png

New configuration

In the new configuration we will need to put a dbproxy between Icinga2 and the database master server. See image below

Icinga21.png