maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #06293
Re: MariaDB server horribly slow on start
-
To:
jocelyn fournier <jocelyn.fournier@xxxxxxxxx>
-
From:
Cédric Counotte <cedric.counotte@xxxxxxxxxx>
-
Date:
Wed, 27 Jul 2022 22:20:40 +0000
-
Accept-language:
en-US, fr-FR
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=1check.com; dmarc=pass action=none header.from=1check.com; dkim=pass header.d=1check.com; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tJ908U8tKpPs6eUffCQ6Y7EBk4DO5yKJM0AheAV79hw=; b=HqcNk8W7Zs7Urh5wsIGtxwiM5RgZZB04eFlgrTni0WV0xbnGEn3XwhOa452zfUzm95w1QmLFx049gQIP4+KyMR8zF0LKSFwfoNcouq+Yek7ZEGG9Pxz9fW1NR/JA29bhGAub4QHLT7cV0/yBmvC68JcBeE0oXcIHmjVF7MxRE+XdyrNtc3vfmT/w70dW9wJdu6scit8dD0XdTvIFbC7U1p80wQOH4CJkVeLRkCmzGM+qn5FDpdtQ1+Xd6BFeg/UMt3swcAmm4mvWCJp8UcTdKJH08cn8g9iaooTE3UNXSUkGAwqxE/iiTAA1tsBh+hakjRHdet2Ab22uvWKu+qfdQg==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zudg2W/yd3Z2SSnRkS9xsvvJuJBafPky4Pkog2bvDkHDKzHsBR4CWY2T29L5Jwl6VK3pWS9XpsdZ27Em1RGfL8SsBUXeHQr6vcgU+xvmQ3fh/b6anD+p8gXveBmWnQvtyALqd3imXg7GSKz8WjdxgmUKtPexCprYxNXwCh1RSNkjXFdvNZsLr5Q51Nw2sfrNYb46VWU6mIOhwwukxZ2lhwWykeWQKknE/GnwQWkvxsU5xSmsTQ9EVZUTyvcBr8VXJCPOtexTT8tM1u0wj0UnPjYhh3uZpkBW8mhq8Kx7D6cOXqVl0fzxr/jshxhObTWWpB5t4m+fXltEZz7uQss3FQ==
-
Authentication-results:
dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=1check.com;
-
Cc:
Mailing-List mariadb <maria-discuss@xxxxxxxxxxxxxxxxxxx>, Pierre LAFON <pierre.lafon@xxxxxxxxxx>
-
In-reply-to:
<54429FE0-B02E-44A0-AF59-17B09DDC7F54@gmail.com>
-
Thread-index:
Adihm/U8OcwjLBOASdqVrFuHw0ZWfgAA2yMAAAGY8HAAAKBwgAAACDYQAADYM4AAAW/DgAAAviOAAAAlMaAAAVHfAAAAUy3A
-
Thread-topic:
[Maria-discuss] MariaDB server horribly slow on start
I just tested using this setting, but it made no difference:
innodb_max_dirty_pages_pct_lwm=0.001
Tested with 2 existing nodes running and sync'ed, and one new node being attached.
As soon as SST sync ended, the first 2 nodes started piling queries, mostly stuck in commit.
If the new node was used, all queries got stuck in opening tables.
Please see attached screenshots showing part of the queues, which quickly reach 100+.
It took about 20 minutes to recover from that situation without using the new node at all! It took another 20 minutes for the new node to become usable (eg not too slow).
Restarted server, it did an IST, exact same result, just worse, pending queries above 200 this time!
How is it possible for queries to be stuck for several minutes (10!!!) while in nominal state they take less than 0.2 seconds !?
Saw this in logs just after the IST, however table_open_cache_instances = 16 is set in config file and live value is indeed 1!?
2022-07-27 23:55:09 11 [Warning] Detected table cache mutex contention at instance 1: 30% waits. Additional table cache instance cannot be activated: consider raising table_open_cache_instances. Number of active instances: 1.
FWIW we have 350+ DB each with 100 tables, and doing a mariabackup requires ulimit -n 919200, servers are processing about 3.000 queries/seconds during those tests, while it peaks at 10.000 during the day. A single server is capable of handling the peak load (verified earlier this morning) !
Attachment:
existing_node_2.png
Description: existing_node_2.png
Attachment:
existing_node_1.png
Description: existing_node_1.png
Attachment:
new_node.png
Description: new_node.png
Follow ups
References
-
MariaDB server horribly slow on start
From: Cédric Counotte, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: William Edwards, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: Cédric Counotte, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: Gordan Bobic, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: Cédric Counotte, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: Gordan Bobic, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: Marko Mäkelä, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: Gordan Bobic, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: Cédric Counotte, 2022-07-27
-
Re: MariaDB server horribly slow on start
From: jocelyn fournier, 2022-07-27