polardbxengine/mysql-test/suite/ndb_rpl/t/ndb_rpl_3_cluster.cnf

77 lines
1.7 KiB
Plaintext

!include include/default_mysqld.cnf
!include include/default_ndbd.cnf
[cluster_config.cluster1]
NoOfReplicas= 1
ndbd=
ndb_mgmd=
mysqld=,
ndbapi=,,,,,,,,,
[cluster_config.cluster2]
NoOfReplicas= 1
ndbd=
ndb_mgmd=
mysqld=
ndbapi=,,,,
[cluster_config.cluster3]
NoOfReplicas= 1
ndbd=
ndb_mgmd=
mysqld=
ndbapi=,,,,
[mysqld]
# Make all mysqlds use cluster
ndbcluster
ndb-wait-connected=20
ndb-wait-setup=60
ndb-cluster-connection-pool=3
slave-allow-batching
ndb-log-orig
# Turn on bin logging
log-bin= cluster1-bin
ndb-log-bin=1
# for performance reasons
ndb-table-temporary=1
ndb-extra-logging=99
# Set error log verbosity to max, otherwise info messages
# are filtered away
log-error-verbosity=3
binlog-format=row
[mysqld.1.cluster1]
server_id= 1
[mysqld.1.cluster2]
server_id= 2
log-bin= cluster2-bin
relay-log= cluster2-relay-bin
log-slave-updates
ndb-log-apply-status
# Directory where slaves find the dumps generated by "load data"
# on the server. The path need to have constant length otherwise
# test results will vary, thus a relative path is used.
slave-load-tmpdir= ../../../tmp
[mysqld.1.cluster3]
server_id= 3
log-bin= cluster3-bin
relay-log= cluster3-relay-bin
log-slave-updates
ndb-log-apply-status
# Directory where slaves find the dumps generated by "load data"
# on the server. The path need to have constant length otherwise
# test results will vary, thus a relative path is used.
slave-load-tmpdir= ../../../tmp
[ENV]
SERVER_MYPORT_1= @mysqld.1.cluster1.port
SERVER_MYPORT_2= @mysqld.1.cluster2.port
SERVER_MYPORT_3= @mysqld.1.cluster3.port