Of course. I forgot to say - this slow down only for write queries. Galera reading performance is good. In production environment I have good hardware (Xeon cpu, RAID and so on). I made experiments on Virtual machines (usual Celeron CPU, SATA HDD) and have found the same slow down at transition from stand-alone server to Galera.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
#nice = 0
[mysqld]
#CLUSTER
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_provider_options=“gcache.size=2G; gcache.page_size=1G;gcs.fc_limit = 256; gcs.fc_factor = 0.99;”
wsrep_slave_threads= 32
innodb_doublewrite=1
query_cache_size=0
query_cache_type=0
wsrep_node_name=“Gandalf”
#wsrep_node_incoming_address=10.0.0.1
#wsrep_sst_receive_address=10.0.0.1
innodb_locks_unsafe_for_binlog=1
wsrep_cluster_address=gcomm://10.0.0.1,10.0.0.6,10.0.0.3
binlog_format=ROW
auto_increment_offset = 1
auto_increment_increment = 1
wsrep_auto_increment_control = 0
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
wsrep_node_address=10.0.0.1
wsrep_sst_method=xtrabackup-v2
wsrep_cluster_name=DB_CLUSTER
wsrep_sst_auth=“sstuserroot:842655”
#wsrep_sst_method=rsync
wsrep_replicate_myisam=1
#GENERAL
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-name-resolve
default_time_zone=‘+04:00’
collation-server = utf8_general_ci
init-connect=‘SET NAMES utf8;’
#init-connect=‘SET GLOBAL sql_mode=“”;’
#init-connect=‘SET SESSION sql_mode=“”;’
#init-connect=‘SET sql_mode=“”;’
default-storage-engine = InnoDB
character-set-server = utf8
bind-address = 0.0.0.0
#bind-address = 127.0.0.1
#THREADS
thread_handling = pool-of-threads
#thread_pool_high_prio_mode = transactions
thread_pool_size = 16
thread-cache-size = 400
MyISAM
key-buffer-size = 32M
myisam-recover = FORCE,BACKUP
SAFETY
max-allowed-packet = 16M
max-connect-errors = 1000000
CACHES AND LIMITS
tmp-table-size = 32M
max-heap-table-size = 32M
query-cache-type = 0
query-cache-size = 0
max-connections = 1000
open-files-limit = 65535
table-definition-cache = 4096
table-open-cache = 1900
INNODB
innodb-log-files-in-group = 2
innodb-log-file-size = 128M
innodb-flush-log-at-trx-commit = 1
innodb-file-per-table = 1
innodb-buffer-pool-size = 32G
LOGGING
log-error = /var/log/mysql/mysql-error.log
#log-queries-not-using-indexes = 1
#slow-query-log = 1
#slow-query-log-file = /var/log/mysql/mysql-slow.log
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
* IMPORTANT: Additional settings that can override those from this file!
The files must end with ‘.cnf’, otherwise they’ll be ignored.
!includedir /etc/mysql/conf.d/