[CONSUL] Add limits to consul chart.
[oom.git] / kubernetes / clamp / components / clamp-mariadb / resources / config / mariadb / conf.d / conf1 / my.cnf
1 # Copyright © 2018  AT&T, Amdocs, Bell Canada Intellectual Property.  All rights reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 # Example MySQL config file for medium systems.
15 #
16 # This is for a system with memory 8G where MySQL plays
17 # an important part, or systems up to 128M where MySQL is used together with
18 # other programs (such as a web server)
19 #
20 # In this file, you can use all long options that a program supports.
21 # If you want to know which options a program supports, run the program
22 # with the "--help" option.
23
24 # The following options will be passed to all MySQL clients
25 ##[client]
26 ##user            = root
27 ##port            = 3306
28 ##socket          = //opt/app/mysql/mysql.sock
29
30 # Here follows entries for some specific programs
31
32 # The MySQL server
33 [mysqld]
34 ##performance_schema
35
36 slow_query_log =ON
37 long_query_time =2
38 slow_query_log_file =//var/lib/mysql/slow_query.log
39 ##basedir         = //opt/app/mysql/product/mariadb-10.1.11-linux-x86_64
40 ##datadir         = //opt/app/mysql/data
41 ##port            = 3306
42 ##socket          = //opt/app/mysql/mysql.sock
43 skip-external-locking
44 explicit_defaults_for_timestamp = true
45 skip-symbolic-links
46 local-infile = 0
47 #ignore_db_dir=lost+found
48 key_buffer_size = 16M
49 max_allowed_packet = 4M
50 table_open_cache = 100
51 sort_buffer_size = 512K
52 net_buffer_length = 8K
53 read_buffer_size = 256K
54 read_rnd_buffer_size = 512K
55 myisam_sort_buffer_size = 8M
56 max_connections = 500
57 lower_case_table_names = 1
58 thread_stack = 256K
59 thread_cache_size = 25
60 query_cache_size = 8M
61 query_cache_type = 0
62 query_prealloc_size = 512K
63 query_cache_limit = 1M
64
65 # Password validation
66 ##plugin-load-add=simple_password_check.so
67 ##simple_password_check_other_characters=0
68
69 # Audit Log settings
70 plugin-load-add=server_audit.so
71 server_audit=FORCE_PLUS_PERMANENT
72 server_audit_file_path=//var/lib/mysql/audit.log
73 server_audit_file_rotate_size=50M
74 server_audit_events=CONNECT,QUERY,TABLE
75 server_audit_logging=on
76
77 # Don't listen on a TCP/IP port at all. This can be a security enhancement,
78 # if all processes that need to connect to mysqld run on the same host.
79 # All interaction with mysqld must be made via Unix sockets or named pipes.
80 # Note that using this option without enabling named pipes on Windows
81 # (via the "enable-named-pipe" option) will render mysqld useless!
82 #
83 #skip-networking
84
85 # Replication Master Server (default)
86 # binary logging is required for replication
87 ##log-bin=//var/lib/mysql/mysql-bin
88
89 # binary logging format - mixed recommended
90 binlog_format=row
91
92 # required unique id between 1 and 2^32 - 1
93 # defaults to 1 if master-host is not set
94 # but will not function as a master if omitted
95
96 # Replication Slave (comment out master section to use this)
97 #
98 # To configure this host as a replication slave, you can choose between
99 # two methods :
100 #
101 # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
102 #    the syntax is:
103 #
104 #    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
105 #    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
106 #
107 #    where you replace <host>, <user>, <password> by quoted strings and
108 #    <port> by the master's port number (3306 by default).
109 #
110 #    Example:
111 #
112 #    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
113 #    MASTER_USER='joe', MASTER_PASSWORD='secret';
114 #
115 # OR
116 #
117 # 2) Set the variables below. However, in case you choose this method, then
118 #    start replication for the first time (even unsuccessfully, for example
119 #    if you mistyped the password in master-password and the slave fails to
120 #    connect), the slave will create a master.info file, and any later
121 #    change in this file to the variables' values below will be ignored and
122 #    overridden by the content of the master.info file, unless you shutdown
123 #    the slave server, delete master.info and restart the slaver server.
124 #    For that reason, you may want to leave the lines below untouched
125 #    (commented) and instead use CHANGE MASTER TO (see above)
126 #
127 # required unique id between 2 and 2^32 - 1
128 # (and different from the master)
129 # defaults to 2 if master-host is set
130 # but will not function as a slave if omitted
131 #server-id       = 2
132 #
133 # The replication master for this slave - required
134 #master-host     =   <hostname>
135 #
136 # The username the slave will use for authentication when connecting
137 # to the master - required
138 #master-user     =   <username>
139 #
140 # The password the slave will authenticate with when connecting to
141 # the master - required
142 #master-password =   <password>
143 #
144 # The port the master is listening on.
145 # optional - defaults to 3306
146 #master-port     =  <port>
147 #
148 # binary logging - not required for slaves, but recommended
149 #log-bin=mysql-bin
150
151 # Uncomment the following if you are using InnoDB tables
152 ##innodb_data_home_dir = //opt/app/mysql/data
153 ##innodb_data_file_path = ibdata1:20M:autoextend:max:32G
154 ##innodb_log_group_home_dir = //opt/app/mysql/iblogs
155 # You can set .._buffer_pool_size up to 50 - 80 %
156 # of RAM but beware of setting memory usage too high
157 innodb_buffer_pool_size = 128M
158 #innodb_additional_mem_pool_size = 2M
159 # Set .._log_file_size to 25 % of buffer pool size
160 innodb_log_file_size = 10M
161 innodb_log_files_in_group = 3
162 innodb_log_buffer_size = 8M
163 #innodb_flush_log_at_trx_commit = 1
164 innodb_lock_wait_timeout = 50
165 innodb_autoextend_increment = 100
166 expire_logs_days = 8
167 open_files_limit = 2000
168 transaction-isolation=READ-COMMITTED
169 ####### Galera parameters #######
170 ## Galera Provider configuration
171 wsrep_provider=/usr/lib/galera/libgalera_smm.so
172 wsrep_provider_options="gcache.size=128M; gcache.page_size=10M"
173 ## Galera Cluster configuration
174 wsrep_cluster_name="MSO-automated-tests-cluster"
175 wsrep_cluster_address="gcomm://"
176 #wsrep_cluster_address="gcomm://mariadb1,mariadb2,mariadb3"
177 ##wsrep_cluster_address="gcomm://192.169.3.184,192.169.3.185,192.169.3.186"
178 ## Galera Synchronization configuration
179 wsrep_sst_method=rsync
180 #wsrep_sst_method=xtrabackup-v2
181 #wsrep_sst_auth="sstuser:Mon#2o!6"
182 ## Galera Node configuration
183 wsrep_node_name="mariadb1"
184 ##wsrep_node_address="192.169.3.184"
185 wsrep_on=OFF
186 ## Status notification
187 #wsrep_notify_cmd=/opt/app/mysql/bin/wsrep_notify
188 #######
189
190
191 [mysqldump]
192 quick
193 max_allowed_packet = 16M
194
195 [mysql]
196 no-auto-rehash
197 # Remove the next comment character if you are not familiar with SQL
198 #safe-updates
199
200 [myisamchk]
201 key_buffer_size = 20971520
202
203 ##[mysqlhotcopy]
204 ##interactive-timeout
205 ##[mysqld_safe]
206 ##malloc-lib=//opt/app/mysql/local/lib/libjemalloc.so.1
207 ##log-error=//opt/app/mysql/log/mysqld.log