Files
replica/example.env
2026-02-12 05:58:29 +01:00

35 lines
1.1 KiB
Bash

# Primary MariaDB Configuration
MARIA_USER=replica
MARIA_PASS=replica
MARIA_SERVER_ID=100
MARIA_PRIMARY_HOST=mariadb-primary
MARIA_PRIMARY_PORT=3306
MARIA_PRIMARY_NAME=mariadb-primary
# Secondary MariaDB Configuration (comma-separated for multiple)
# Format: host1:port1,host2:port2,host3:port3
# Or just hostnames and use MARIA_SECONDARY_PORTS for ports
MARIA_SECONDARY_HOSTS=mariadb-secondary-1,mariadb-secondary-2,mariadb-secondary-3
MARIA_SECONDARY_PORTS=3307,3308,3309
MARIA_SECONDARY_NAMES=secondary-1,secondary-2,secondary-3
# Optional: Override per-secondary credentials (must match number of secondaries or use defaults)
# MARIA_SECONDARY_USERS=replica1,replica2,replica3
# MARIA_SECONDARY_PASSWORDS=pass1,pass2,pass3
# Legacy single secondary (for backward compatibility)
# MARIA_SECONDARY_HOST=mariadb-secondary
# Transfer Settings
TRANSFER_BATCH_SIZE=1000
# Project name for logging
LOCAL_PROJECT_NAME=naluconcept
# Graylog Configuration
GRAYLOG_ENABLED=false
GRAYLOG_ENDPOINT=localhost:12201
GRAYLOG_PROTOCOL=udp
GRAYLOG_TIMEOUT=5s
GRAYLOG_SOURCE=binlog-sync