| 1 |
!include include/default_mysqld.cnf |
| 2 |
!include include/default_ndbd.cnf |
| 3 |
|
| 4 |
[cluster_config] |
| 5 |
TimeBetweenEpochsTimeout = 30000 |
| 6 |
|
| 7 |
[cluster_config.1] |
| 8 |
NoOfReplicas= 2 |
| 9 |
ndbd=, |
| 10 |
ndb_mgmd= |
| 11 |
mysqld=, |
| 12 |
ndbapi=,,,,,,,,, |
| 13 |
|
| 14 |
[cluster_config.slave] |
| 15 |
NoOfReplicas= 1 |
| 16 |
ndbd= |
| 17 |
ndb_mgmd= |
| 18 |
mysqld= |
| 19 |
ndbapi=,,,, |
| 20 |
|
| 21 |
[mysqld] |
| 22 |
# Make all mysqlds use cluster |
| 23 |
ndbcluster |
| 24 |
ndb-wait-connected=30 |
| 25 |
ndb-wait-setup=120 |
| 26 |
ndb-cluster-connection-pool=3 |
| 27 |
replica-allow-batching |
| 28 |
ndb-log-orig |
| 29 |
ndb-log-bin=1 |
| 30 |
replica-parallel-workers=1 |
| 31 |
# Use smaller than default cache size to save resources |
| 32 |
ndb-log-cache-size=32768 |
| 33 |
|
| 34 |
# Enable load data local functionality |
| 35 |
local-infile=true |
| 36 |
|
| 37 |
# Turn on bin logging |
| 38 |
log-bin= master-bin |
| 39 |
# for performance reasons |
| 40 |
ndb-table-temporary=1 |
| 41 |
|
| 42 |
ndb-extra-logging=99 |
| 43 |
|
| 44 |
# Cluster only supports row format |
| 45 |
binlog-format= row |
| 46 |
|
| 47 |
[cluster_config.mysqld.1.1] |
| 48 |
NodeId=49 |
| 49 |
Dedicated=1 |
| 50 |
|
| 51 |
[cluster_config.mysqld.2.1] |
| 52 |
NodeId=16 |
| 53 |
Dedicated=1 |
| 54 |
|
| 55 |
[cluster_config.ndbapi.1.1] |
| 56 |
NodeId=32 |
| 57 |
Dedicated=1 |
| 58 |
|
| 59 |
[cluster_config.ndbapi.2.1] |
| 60 |
NodeId=48 |
| 61 |
Dedicated=1 |
| 62 |
|
| 63 |
[cluster_config.ndbapi.3.1] |
| 64 |
NodeId=63 |
| 65 |
Dedicated=1 |
| 66 |
|
| 67 |
[cluster_config.ndbapi.4.1] |
| 68 |
NodeId=127 |
| 69 |
Dedicated=1 |
| 70 |
|
| 71 |
[cluster_config.mysqld.1.slave] |
| 72 |
NodeId=49 |
| 73 |
Dedicated=1 |
| 74 |
|
| 75 |
[cluster_config.ndbapi.1.slave] |
| 76 |
NodeId=32 |
| 77 |
Dedicated=1 |
| 78 |
|
| 79 |
[cluster_config.ndbapi.2.slave] |
| 80 |
NodeId=48 |
| 81 |
Dedicated=1 |
| 82 |
|
| 83 |
[cluster_config.ndbapi.3.slave] |
| 84 |
NodeId=63 |
| 85 |
Dedicated=1 |
| 86 |
|
| 87 |
[cluster_config.ndbapi.4.slave] |
| 88 |
NodeId=127 |
| 89 |
Dedicated=1 |
| 90 |
|
| 91 |
[mysqld.1.1] |
| 92 |
ndb-cluster-connection-pool-nodeids=49,32,63 |
| 93 |
# Tests are written with the assumption that this mysqld does not |
| 94 |
# log updates from the slave |
| 95 |
skip-log-replica-updates |
| 96 |
|
| 97 |
[mysqld.1.slave] |
| 98 |
ndb-cluster-connection-pool-nodeids=49,32,63 |
| 99 |
|
| 100 |
# Append <testname>-slave.opt file to the list of argument used when |
| 101 |
# starting the mysqld |
| 102 |
#!use-slave-opt |
| 103 |
|
| 104 |
log-bin= slave-bin |
| 105 |
relay-log= slave-relay-bin |
| 106 |
# Cluster only supports row format |
| 107 |
binlog-format= row |
| 108 |
|
| 109 |
log-replica-updates |
| 110 |
master-retry-count= 10 |
| 111 |
|
| 112 |
# Values reported by slave when it connect to master |
| 113 |
# and shows up in SHOW SLAVE STATUS; |
| 114 |
report-host= 127.0.0.1 |
| 115 |
report-port= @mysqld.1.slave.port |
| 116 |
report-user= root |
| 117 |
|
| 118 |
skip-replica-start |
| 119 |
|
| 120 |
# Directory where slaves find the dumps generated by "load data" |
| 121 |
# on the server. The path need to have constant length otherwise |
| 122 |
# test results will vary, thus a relative path is used. |
| 123 |
replica-load-tmpdir= ../../../tmp |
| 124 |
|
| 125 |
[mysqld.2.1] |
| 126 |
ndb-cluster-connection-pool-nodeids=16,48,127 |
| 127 |
|
| 128 |
[ENV] |
| 129 |
NDB_CONNECTSTRING= @mysql_cluster.1.ndb_connectstring |
| 130 |
MASTER_MYPORT= @mysqld.1.1.port |
| 131 |
MASTER_ERRFILE= @mysqld.1.1.#log-error |
| 132 |
MASTER_MYPORT1= @mysqld.2.1.port |
| 133 |
MASTER_ERRFILE1= @mysqld.2.1.#log-error |
| 134 |
|
| 135 |
NDB_CONNECTSTRING_SLAVE= @mysql_cluster.slave.ndb_connectstring |
| 136 |
SLAVE_MYPORT= @mysqld.1.slave.port |
| 137 |
SLAVE_MYSOCK= @mysqld.1.slave.socket |
| 138 |
SLAVE_ERRFILE= @mysqld.1.slave.#log-error |
| 139 |
|
| 140 |
NDB_BACKUP_DIR= @cluster_config.ndbd.1.1.BackupDataDir |