luceos I updated the OP with our flarum info. I already tried to disable some extensions that I suspected (kyrne-websocket, fof-reactions, askvortsov-rich-text) but with no luck.
does MySQL slow query log show anything?
First time I looked there was nothing but it was set to 10s. I just set it to 3s and here we go! It's weird, it seems that any little query is affected...
/usr/sbin/mysqld, Version: 10.3.31-MariaDB-0+deb10u1 (Debian 10). started with:
Tcp port: 3306 Unix socket: /run/mysqld/mysqld.sock
Time Id Command Argument
# Time: 220117 14:34:15
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8828 Schema: flarum QC_hit: No
# Query_time: 3.097120 Lock_time: 0.000039 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
use flarum;
SET timestamp=1642426455;
update `flarumaccess_tokens` set `last_activity_at` = '2022-01-17 13:34:12', `last_ip_address` = '127.0.0.1', `last_user_agent` = 'curl/7.64.0' where `id` = 610;
# Time: 220117 14:34:20
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8828 Schema: flarum QC_hit: No
# Query_time: 4.324685 Lock_time: 0.000029 Rows_sent: 12 Rows_examined: 12
# Rows_affected: 0 Bytes_sent: 1005
SET timestamp=1642426460;
select * from `flarumpost_reactions` where `reaction_id` is not null and `flarumpost_reactions`.`post_id` in (910, 915, 935, 1125, 1156, 1627, 1630, 1644, 1647, 2530, 2554);
# Time: 220117 14:37:15
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8838 Schema: flarum QC_hit: No
# Query_time: 3.387412 Lock_time: 0.000053 Rows_sent: 1 Rows_examined: 1
# Rows_affected: 0 Bytes_sent: 984
SET timestamp=1642426635;
select * from `flarumaccess_tokens` where ((`type` = 'developer') or (`type` = 'session_remember' and `last_activity_at` > '2017-01-18 13:37:12') or (`type` = 'session' and `last_activity_at` > '2022-01-17 12:37:12')) and `token` = '[...]' limit 1;
# Time: 220117 14:37:17
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8836 Schema: flarum QC_hit: No
# Query_time: 3.005733 Lock_time: 0.000048 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426637;
update `flarumaccess_tokens` set `last_activity_at` = '2022-01-17 13:37:14', `last_ip_address` = '192.168.10.100', `last_user_agent` = 'Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0' where `id` = 610;
# Time: 220117 14:37:21
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8838 Schema: flarum QC_hit: No
# Query_time: 3.215694 Lock_time: 0.000065 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426641;
update `flarumusers` set `last_seen_at` = '2022-01-17 13:37:18' where `id` = 2;
# Time: 220117 14:37:28
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8839 Schema: flarum QC_hit: No
# Query_time: 3.923465 Lock_time: 0.000055 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426648;
update `flarumaccess_tokens` set `last_activity_at` = '2022-01-17 13:37:24', `last_ip_address` = NULL, `last_user_agent` = NULL where `id` = 610;
# Time: 220117 14:37:33
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8839 Schema: flarum QC_hit: No
# Query_time: 5.192325 Lock_time: 0.000140 Rows_sent: 1 Rows_examined: 1
# Rows_affected: 0 Bytes_sent: 900
SET timestamp=1642426653;
select * from `flarumaccess_tokens` where ((`type` = 'developer') or (`type` = 'session_remember' and `last_activity_at` > '2017-01-18 13:37:28') or (`type` = 'session' and `last_activity_at` > '2022-01-17 12:37:28')) and `token` = '[...]' limit 1;
# Time: 220117 14:37:36
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8840 Schema: flarum QC_hit: No
# Query_time: 5.317106 Lock_time: 0.000059 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426656;
update `flarumaccess_tokens` set `last_activity_at` = '2022-01-17 13:37:30', `last_ip_address` = '192.168.10.100', `last_user_agent` = 'Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0' where `id` = 610;
# Time: 220117 14:37:40
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8840 Schema: flarum QC_hit: No
# Query_time: 4.129018 Lock_time: 0.000020 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426660;
update `flarumdiscussion_user` set `last_read_at` = '2022-01-17 13:37:36', `last_read_post_number` = 4 where `discussion_id` = 373 and `user_id` = 2;
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8839 Schema: flarum QC_hit: No
# Query_time: 6.483146 Lock_time: 0.000207 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426660;
update `flarumusers` set `last_seen_at` = '2022-01-17 13:37:33' where `id` = 2;
# Time: 220117 14:38:04
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8842 Schema: flarum QC_hit: No
# Query_time: 3.404720 Lock_time: 0.000038 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426684;
update `flarumaccess_tokens` set `last_activity_at` = '2022-01-17 13:38:00', `last_ip_address` = '192.168.10.100', `last_user_agent` = 'Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0' where `id` = 610;
# Time: 220117 14:38:39
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8852 Schema: flarum QC_hit: No
# Query_time: 3.349745 Lock_time: 0.000045 Rows_sent: 1 Rows_examined: 1
# Rows_affected: 0 Bytes_sent: 984
SET timestamp=1642426719;
select * from `flarumaccess_tokens` where ((`type` = 'developer') or (`type` = 'session_remember' and `last_activity_at` > '2017-01-18 13:38:36') or (`type` = 'session' and `last_activity_at` > '2022-01-17 12:38:36')) and `token` = '[...]' limit 1;
# Time: 220117 14:38:47
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8853 Schema: flarum QC_hit: No
# Query_time: 4.812028 Lock_time: 0.000103 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426727;
update `flarumusers` set `last_seen_at` = '2022-01-17 13:38:42' where `id` = 2;
# Time: 220117 14:38:50
# User@Host: flarum[flarum] @ localhost []
# Thread_id: 8853 Schema: flarum QC_hit: No
# Query_time: 3.522467 Lock_time: 0.000049 Rows_sent: 0 Rows_examined: 1
# Rows_affected: 1 Bytes_sent: 52
SET timestamp=1642426730;
update `flarumaccess_tokens` set `last_activity_at` = '2022-01-17 13:38:47', `last_ip_address` = '192.168.10.100', `last_user_agent` = 'Mozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0' where `id` = 610;