ToolsDB is currently running on MariaDB 10.4, which was maintained until 18 June 2024.
10.6 is the next LTS and is already used in some WMF production hosts, so we should upgrade to it as soon as feasible.
We should also upgrade the OS from Debian Bullseye (11) to Bookworm (12).
Upgrading might also help with the memory issues we had in T349695 and T353093, and will provide more monitoring options like memory_summary_global_by_event_name.
The procedure to upgrade from 10.4 to 10.6 was described by @Marostegui in this comment:
- Stop mariadb
- Remove 10.4 package
- Install 10.6 package
- Start mariadb
- Run mysql_upgrade
Full upgrade procedure for ToolsDB: https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/ToolsDB#Upgrading_to_a_newer_MariaDB_version