[mysqld] # Path to Galera library wsrep_provider=/usr/lib64/galera3/libgalera_smm.so # Cluster connection URL contains IPs of nodes #If no IP is found, this implies that a new cluster needs to be created, #in order to do that you need to bootstrap this node wsrep_cluster_address=gcomm://172.20.0.30,172.20.0.31,172.20.0.32 # In order for Galera to work correctly binlog format should be ROW binlog_format=ROW # MyISAM storage engine has only experimental support default_storage_engine=InnoDB # Slave thread to use wsrep_slave_threads = 32 wsrep_log_conflicts # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera innodb_autoinc_lock_mode=2 # Node IP address wsrep_node_address=172.20.0.32 # Cluster name wsrep_cluster_name=pxc-setivia #If wsrep_node_name is not specified, then system hostname will be used wsrep_node_name=pxc-setivia3 #pxc_strict_mode allowed values: DISABLED,PERMISSIVE,ENFORCING,MASTER pxc_strict_mode=ENFORCING # SST method wsrep_sst_method=xtrabackup-v2 #Authentication for SST method wsrep_sst_auth=“XXXXXX:xxxxx” wsrep_provider_options="gcs.fc_limit=160;gcs.fc_factor=0.8" wsrep_notify_cmd='/opt/galeranotify/galeranotify.py' skip-name-resolve=1 innodb_buffer_pool_size = 1536M innodb_log_file_size = 256M innodb_flush_log_at_trx_commit = 0 innodb_flush_method = O_DIRECT innodb-log-files-in-group = 2 innodb-file-per-table = 1 thread_handling=pool-of-threads thread_pool_size=36 join_buffer_size=256k innodb_buffer_pool_instances=2 # CACHES AND LIMITS # tmp-table-size = 32M max-heap-table-size = 32M query-cache-type = 0 query-cache-size = 0 max-connections = 500 thread-cache-size = 50 open-files-limit = 65535 table-definition-cache = 1024 table-open-cache = 2048 #Percona specific slow_query_log=ON long_query_time=2 log_slow_rate_limit=100 log_slow_rate_type=query log_slow_verbosity=full log_slow_admin_statements=ON log_slow_slave_statements=ON slow_query_log_always_write_time=1 slow_query_log_use_global_control=all innodb_monitor_enable=all performance_schema=ON userstat=1