2
0

New recipe: Redmine with MariaDB.

This commit is contained in:
2026-01-14 21:55:51 +01:00
parent a6db332f5b
commit d9a56d178b
20 changed files with 891 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,4 @@
# Ignore everything in this directory except these files.
*
!.gitignore
!.rotate_folder.conf

View File

@@ -0,0 +1,9 @@
# This is a shell script excerpt for configuration purposes only.
# Handle with care! Please don't put code here, only variables.
CLASSES_PATTERN="^([^.]*)\..*\.$HOSTNAME\.(dmp|sql\.gz|tgz|log)$"
DOIT="yes" # if empty the script makes a dry run
# RETAIN_DAYS=7 # retains all files created within that many days
# RETAIN_WEEKS=4 # retains one file per week/month,
# RETAIN_MONTHS=12 # created within that many weeks/months

View File

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

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 Redmine 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,6 @@
#!/bin/bash
chown -R 999:999 *
find . -type d -exec chmod 2770 {} \;
find . -type f -exec chmod 660 {} \;