icinga2/lib/db_ido
Michael Friedrich 149f640fd8 Improve DB IDO HA failover behaviour
- Decrease Object Authority updates to 10s (was 30s)
- Decrease failover timeout to 30s (was 60s)
- Decrease cold startup (after (re)start) with no OA updates to 30s (was 60s)
- Immediately connect on Resume()
- Fix query priority which got broken with #6970
- Add more logging when a failover is in progress

```
[2019-03-29 16:13:53 +0100] information/IdoMysqlConnection: Last update by endpoint 'master1' was 8.33246s ago (< failover timeout of 30s). Retrying.

[2019-03-29 16:14:23 +0100] information/IdoMysqlConnection: Last update by endpoint 'master1' was 38.3288s ago. Taking over 'ido-mysql' in HA zone 'master'.
```

- Add more logging for reconnect and disconnect handling
- Add 'last_failover' attribute to IDO*Connection objects

refs #6970
2019-04-01 08:50:00 +02:00
..
CMakeLists.txt Replace Copyright header with a short version, part II 2019-02-25 15:09:36 +01:00
commanddbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
commanddbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
db_ido-itl.conf Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbconnection.cpp Improve DB IDO HA failover behaviour 2019-04-01 08:50:00 +02:00
dbconnection.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbconnection.ti Improve DB IDO HA failover behaviour 2019-04-01 08:50:00 +02:00
dbevents.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbevents.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbquery.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbquery.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbreference.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbreference.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbtype.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbtype.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbvalue.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
dbvalue.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
endpointdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
endpointdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
hostdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
hostdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
hostgroupdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
hostgroupdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
i2-db_ido.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
idochecktask.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
idochecktask.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
servicedbobject.cpp Merge pull request #6970 from Icinga/bugfix/perfdata-gaps 2019-02-26 15:38:15 +01:00
servicedbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
servicegroupdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
servicegroupdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
timeperioddbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
timeperioddbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
userdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
userdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
usergroupdbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
usergroupdbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
zonedbobject.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
zonedbobject.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00