Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config parameters from mariadb-server.cnf to Addon config in HA #602

Open
bsafh opened this issue Aug 10, 2024 · 2 comments
Open

Add config parameters from mariadb-server.cnf to Addon config in HA #602

bsafh opened this issue Aug 10, 2024 · 2 comments
Labels
need feedback Need feedback from user.

Comments

@bsafh
Copy link

bsafh commented Aug 10, 2024

Today I tried updating to HA 2024.08.0, which includes a database update.
This database update fallen with "too many locks", because it is running too long on my rather big database.

I don't mind the time it runs, but it just fails.

To work around this, the parameter innodb_buffer_pool_size can be increased. Theoretically. In reality there is no way of doing this.

I understand that the addon is tuned to a low-end machine like a Raspberry Pi. But well, my HA supervised instance run on a VM with 12 virt-CPUs and 12 GB RAM. It really would profit from different MariaDB settings, preferably all of those explicitly found in the mariadb-server.cnf found in the addons directory.

@grooverdan
Copy link
Member

This database update fallen with "too many locks", because it is running too long on my rather big database.

Which MariaDB version? This a migration slowness some people are mentioning in the HA core issues?

To work around this, the parameter innodb_buffer_pool_size can be increased. Theoretically. In reality there is no way of doing this.

Why not? Put --innodb-log-buffer-size=6G and --innodb-log-file-size=6G on the command line of the container start.

This one?
https://github.com/home-assistant/addons/blob/master/mariadb/rootfs/etc/my.cnf.d/mariadb-server.cnf

I can't see much good justification for any of the settings however it can be used with:

https://hub.docker.com/_/mariadb/ -> "Using a custom MariaDB configuration file"

@grooverdan
Copy link
Member

ref: home-assistant/core#123179

@grooverdan grooverdan added the need feedback Need feedback from user. label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need feedback Need feedback from user.
Development

No branches or pull requests

2 participants