Hi.
I suggest to set some of MariaDB config value as below to improve.
The config file at ‘/etc/my.cnf’ or ‘/etc/my.cnf.d/mariadb-server.cnf’
innodb-flush-log-at-trx-commit=2
transaction-isolation=READ-COMMITTED >> read consistency and race condition avoiding like OracleDB
innodb-flush-log-at-timeout=60 >> this likely similar to 'commit_interval' in yaml to prevent SD card draining
innodb-buffer-pool-size=1024M >> it support flush timeout.
And also do the same thing for influxDB.