icinga2/lib/db_ido_mysql
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
..
schema Replace a few more copyright strings 2019-02-25 16:30:40 +01:00
CMakeLists.txt Replace Copyright header with a short version, part II 2019-02-25 15:09:36 +01:00
idomysqlconnection.cpp Improve DB IDO HA failover behaviour 2019-04-01 08:50:00 +02:00
idomysqlconnection.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
idomysqlconnection.ti Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00