Hi
I had to restart icinga2 today to get the DB connection working again after a hiccup in the network.
Did I misconfigure something or is this normal.
The DB is not on the same host. It is a MariaDB configured for Master <-> Master sync behind a load balancer that runs pinned to Master 1 with a failover to Master 2.
Beginning of problem:
[2020-05-08 08:39:22 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 0, rate: 51.1167/s (3067/min 189383/5min 231919/15min);
[2020-05-08 08:40:42 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 2, rate: 51.3167/s (3079/min 152108/5min 231933/15min);
[2020-05-08 08:41:02 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 2, rate: 50.85/s (3051/min 152096/5min 231939/15min);
[2020-05-08 08:43:42 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 34, rate: 50.1/s (3006/min 15304/5min 220124/15min);
[2020-05-08 08:43:52 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 485, rate: 42.1167/s (2527/min 14829/5min 219631/15min); empty in 10 seconds
[2020-05-08 08:44:02 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 978, rate: 33.6333/s (2018/min 14268/5min 219078/15min); empty in 19 seconds
[2020-05-08 08:44:12 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 1646, rate: 23.7167/s (1423/min 13721/5min 218482/15min); empty in 24 seconds
Resolution by me restarting icinga2:
[2020-05-08 09:22:42 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 93312, rate: 0/s (0/min 0/5min 0/15min); empty in infinite time, your task handler isn't able to keep up
[2020-05-08 09:22:52 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 93312, rate: 0/s (0/min 0/5min 0/15min); empty in infinite time, your task handler isn't able to keep up
[2020-05-08 09:23:02 +0200] information/IdoMysqlConnection: 'ido-mysql' resumed.
[2020-05-08 09:23:02 +0200] information/IdoMysqlConnection: MySQL IDO instance id: 1 (schema version: '1.15.0')
[2020-05-08 09:23:03 +0200] information/IdoMysqlConnection: Finished reconnecting to 'ido-mysql' database 'icinga2' in 0.851092 second(s).
[2020-05-08 09:23:09 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 0, rate: 8.45/s (507/min 507/5min 507/15min);
[2020-05-08 09:23:59 +0200] information/WorkQueue: #8 (IdoMysqlConnection, ido-mysql) items: 3, rate: 1482.23/s (88934/min 88934/5min 88934/15min);
The last time something like this happened it resolved by icinga restarting the IdoMysqlConnection after ca. 30min.
Would it have resolved by itself if I just had waited some more minutes?
I confirmed that I could connect from the server icinga is running on to the database with the same credentials that icinga uses. No locks seen with
SHOW FULL PROCESSLIST;
as icinga db user.
What are your thoughts and recommendations?
Regards,
Dominik