# All files in this package is subject to the GPL v2 license # More information is in the COPYING file in the top directory of this package. # Copyright (C) 2011 severalnines.com [MYSQLD] user=mysql basedir=/usr/local//mysql/ datadir=/data/mysql/ pid-file=mysqld.pid socket=/var/lib/mysql/mysql.sock port=3306 skip_name_resolve ndb-cluster-connection-pool=4 ndbcluster=1 ndb-connectstring="ndb_mgm1:1186,ndb_mgm2:1186" ndb-force-send=1 ndb-use-exact-count=0 ndb-extra-logging=1 ndb-autoincrement-prefetch-sz=256 engine-condition-pushdown=1 #REPLICATION SPECIFIC - GENERAL #server-id must be unique across all mysql servers participating in replication. #server-id=X #REPLICATION SPECIFIC - MASTER #log-bin=binlog #LOGS log-error=error.log #log #log-slow-queries #OTHER THINGS, BUFFERS ETC key_buffer_size = 256M max_allowed_packet = 16M sort_buffer_size = 512K read_buffer_size = 256K read_rnd_buffer_size = 512K #thread_cache_size=1024 myisam_sort_buffer_size = 8M memlock=0 skip_name_resolve sysdate_is_now=1 max-connections=200 thread-cache-size=128 ###QUERY CACHE IS DISABLED ###THE QUERY CACHE IN MYSQL CLUSTER CAN HAMPER PERFORMANCE A LOT. HENCE IT IS DISABLED ###BECAUSE INVALIDATION OF IT TAKES TIME (REMEMBER, IT IS A DISTRIBUTED ENVIRONMENT) ###ONLY ENABLE IT AND USE SQL_CACHE TO CACHE ONLY CERTAIN QUERIES ON READONLY TABLES query_cache_type = 0 query_cache_size = 0 table_open_cache=1024 lower-case-table-names=0 [MYSQL] socket=/var/lib/mysql/mysql.sock [client] socket=/var/lib/mysql/mysql.sock [MYSQLD_SAFE] log-error=error.log basedir=/usr/local//mysql/ datadir=/data/mysql/