proxysql.cnf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. datadir="/var/lib/proxysql"
  2. admin_variables=
  3. {
  4. admin_credentials="admin:admin;radmin:radmin"
  5. mysql_ifaces="0.0.0.0:6032"
  6. }
  7. global_variables=
  8. {
  9. mysql-monitor_username="monitoruser"
  10. mysql-monitor_password="monitorpass"
  11. mysql-monitor_connect_interval=2000
  12. mysql-monitor_ping_interval=1000
  13. mysql-monitor_read_only_interval=2000
  14. }
  15. mysql_variables=
  16. {
  17. threads=4
  18. max_connections=2048
  19. default_query_delay=0
  20. default_query_timeout=36000000
  21. have_compress=true
  22. poll_timeout=2000
  23. interfaces="0.0.0.0:6033"
  24. default_schema="information_schema"
  25. stacksize=1048576
  26. server_version="5.5.30"
  27. connect_timeout_server=3000
  28. monitor_username="monitoruser"
  29. monitor_password="monitorpass"
  30. monitor_history=600000
  31. monitor_connect_interval=60000
  32. monitor_ping_interval=10000
  33. monitor_read_only_interval=1500
  34. monitor_read_only_timeout=500
  35. ping_interval_server_msec=120000
  36. ping_timeout_server=500
  37. commands_stats=true
  38. sessions_sort=true
  39. connect_retries_on_failure=10
  40. }
  41. mysql_servers =
  42. (
  43. {
  44. address="mysql1"
  45. port=3307
  46. hostgroup=1
  47. max_connections=200
  48. },
  49. {
  50. address="mysql2"
  51. port=3308
  52. hostgroup=1
  53. max_connections=200
  54. }
  55. )
  56. mysql_users:
  57. (
  58. {
  59. username = "monitoruser"
  60. password = "monitorpass"
  61. default_hostgroup = 1
  62. max_connections=1000
  63. default_schema="application"
  64. active = 1
  65. }
  66. )