MariaDB server which I have been using for years is behaving erratically. Frequently it crashes, always on the full hour or when instructing a purge. I suspect the root cause is in the long-term statistics part - I tried to find help on user forums (MariaDB and HA community), only suggestion I found is that it might be memory related. I increased RAM allocation to the Proxmox VM which helped for 3 days but now it's back. Anyone seen this before? Below is an excerpt, not complete.
Logger: homeassistant.components.recorder.util
Source: components/recorder/util.py:202
integration: Recorder (documentation, issues)
First occurred: 4:00:01 AM (93 occurrences)
Last logged: 10:00:59 AM
Error executing query: (MySQLdb.OperationalError) (2013, 'Lost connection to server during query') [SQL: SELECT anon_1.metadata_id, anon_1.state, anon_1.last_updated_ts, anon_1.attributes FROM (SELECT anon_2.metadata_id AS metadata_id, anon_2.state AS state, anon_2.last_updated_ts AS last_updated_ts, anon_2.attributes AS attributes FROM (SELECT states.metadata_id AS metadata_id, states.state AS state, %s AS last_updated_ts, CASE WHEN (state_attributes.shared_attrs IS NULL) THEN states.attributes ELSE state_attributes.shared_attrs END AS attributes FROM states LEFT OUTER , anon_1.last_updated_ts] [parameters: (0, 1735786800.0, 4825, 1, 4825, 1735786800.0, 1735873200.0)] (Background on this error at: https://sqlalche.me/e/20/e3q8)