Re: Flex MySQL 8.0 on AzUre
Posted by:
Nigel Gomm
Date: September 11, 2024 06:01AM
Update for anyone else struggling on Azure....
.... although we're encouraged to stick with Azure's default server settings they aren't limiting MySQL to any realistic memory maximum.
using this
SELECT (
(
(@@innodb_buffer_pool_size) +
@@innodb_log_buffer_size +
@@key_buffer_size +
( @@max_connections *
( @@binlog_cache_size +
@@binlog_stmt_cache_size +
@@bulk_insert_buffer_size +
@@join_buffer_size +
(@@max_allowed_packet) +
@@read_buffer_size +
@@read_rnd_buffer_size +
@@sort_buffer_size +
@@thread_stack +
@@tmp_table_size
)
) +
+
( @@open_files_limit * 1024)
) / 1024 / 1024 / 1024) AS max_memory_GB;
the default settings give > 150GB of memory.
By reducing max_connections, Max_allowed_packet and innodb_buffer_pool_size i was able to set the max memory to < 32GB and things are now more stable.
Subject
Views
Written By
Posted
98
September 10, 2024 07:20AM
35
September 10, 2024 07:52AM
Re: Flex MySQL 8.0 on AzUre
43
September 11, 2024 06:01AM
32
September 19, 2024 09:02AM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.