2
0

New recipe: Nextcloud with MariaDB.

This commit is contained in:
2026-01-14 21:51:46 +01:00
parent e0a8a89bb3
commit a6db332f5b
19 changed files with 879 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# Ignore everything in this directory except this file.
*
!.gitignore

View File

@@ -0,0 +1,30 @@
# MariaDB 11.x settings according to the Nextcloud stack (optional).
# See also:
# https://gist.github.com/fevangelou/fb72f36bbe333e059b66
# https://github.com/major/MySQLTuner-perl
[mysqld]
# https://gist.github.com/fevangelou/fb72f36bbe333e059b66
# consider https://github.com/major/MySQLTuner-perl
innodb_buffer_pool_size = 2G # 70-80% of memory available for MySQL/MariaDB
innodb_buffer_pool_instances = 2 # Use 1 instance per 1GB of InnoDB pool size
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = O_DIRECT
innodb_log_buffer_size = 64M
innodb_log_file_size = 256M # should be 25% of innodb_buffer_pool_size / 2
innodb_stats_on_metadata = 0
# https://mariadb.com/kb/en/configuring-mariadb-for-optimal-performance/
# we practically don't use the MyISAM engine
key_buffer_size = 10M
# https://mariadb.com/kb/en/mariadb-memory-allocation/#query-cache
query_cache_type = 0
query_cache_size = 0
#query_cache_type = ON
#query_cache_size = 10M
#query_cache_limit = 1M
# Buffer Settings
#sort_buffer_size = 1M
#join_buffer_size = 1M

View File

@@ -0,0 +1,3 @@
# Ignore everything in this directory except this file.
*
!.gitignore

View File

@@ -0,0 +1,3 @@
# Ignore everything in this directory except this file.
*
!.gitignore

View File

@@ -0,0 +1,3 @@
# Ignore everything in this directory except this file.
*
!.gitignore

View File

@@ -0,0 +1,3 @@
# Ignore everything in this directory except this file.
*
!.gitignore