datadir="/var/lib/proxysql"
errorlog="/var/lib/proxysql/proxysql.log"

admin_variables=
{
	admin_credentials="jingrow:{{ proxysql_admin_password }}"
	mysql_ifaces="0.0.0.0:6032"
	hash_passwords=true

	restapi_enabled=true
	prometheus_memory_metrics_interval=60
}

mysql_variables=
{
	interfaces="0.0.0.0:6033"
	default_schema="information_schema"
	stacksize=1048576
	server_version="5.5.30"
	threads=4
	have_compress=true

	connect_timeout_server=3000
	connect_retries_on_failure=10

	monitor_username="monitor"
	monitor_password="monitor"
	monitor_history=600000
	monitor_connect_interval=60000
	monitor_ping_interval=10000
	monitor_read_only_interval=1500
	monitor_read_only_timeout=500
	ping_interval_server_msec=120000
	ping_timeout_server=500

	commands_stats=true
	sessions_sort=true

	have_ssl=true

	auditlog_filename="/var/lib/proxysql/audit.log"
	auditlog_filesize=104857600

	eventslog_filename="/var/lib/proxysql/events.log"
	eventslog_filesize=104857600
	eventslog_format=2
	eventslog_default_log=true

	poll_timeout=2000
	max_connections=2048
	default_query_delay=0
	default_query_timeout=300000
	max_transaction_time=1200000
	wait_timeout=300000
	default_sql_safe_updates="ON"
}

