Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: mysql-master
  5. data:
  6. my.cnf: |-
  7. [client]
  8. port = 3306
  9. socket = /var/run/mysqld/mysqld.sock
  10.  
  11. [mysqld_safe]
  12. socket = /var/run/mysqld/mysqld.sock
  13. nice = 0
  14.  
  15. [mysqld]
  16. server-id = 1
  17. log_bin = /var/log/mysql/mysql-bin.log
  18. skip-host-cache
  19. skip-name-resolve
  20. pid-file = /var/run/mysqld/mysqld.pid
  21. socket = /var/run/mysqld/mysqld.sock
  22. port = 3306
  23. basedir = /usr
  24. datadir = /var/lib/mysql
  25. tmpdir = /tmp
  26. lc_messages_dir = /usr/share/mysql
  27. lc_messages = en_US
  28. skip-external-locking
  29. max_connections = 100
  30. connect_timeout = 5
  31. wait_timeout = 600
  32. max_allowed_packet = 32M
  33. thread_cache_size = 128
  34. sort_buffer_size = 4M
  35. bulk_insert_buffer_size = 16M
  36. tmp_table_size = 32M
  37. max_heap_table_size = 32M
  38. myisam_recover = BACKUP
  39. key_buffer_size = 128M
  40. table_open_cache = 400
  41. myisam_sort_buffer_size = 512M
  42. concurrent_insert = 2
  43. read_buffer_size = 2M
  44. read_rnd_buffer_size = 1M
  45. query_cache_limit = 128K
  46. query_cache_size = 64M
  47. slow_query_log_file = /var/log/mysql/mariadb-slow.log
  48. long_query_time = 10
  49. expire_logs_days = 10
  50. max_binlog_size = 100M
  51. sql_mode = STRICT_ALL_TABLES
  52. default_storage_engine = InnoDB
  53. innodb_buffer_pool_size = 256M
  54. innodb_log_buffer_size = 8M
  55. innodb_file_per_table = 1
  56. innodb_open_files = 400
  57. innodb_io_capacity = 400
  58. innodb_flush_method = O_DIRECT
  59.  
  60. [mysqldump]
  61. quick
  62. quote-names
  63. max_allowed_packet = 16M
  64.  
  65. [mysql]
  66. #no-auto-rehash # faster start of mysql but no tab completition
  67.  
  68. [isamchk]
  69. key_buffer = 16M
  70.  
  71. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement