mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
Changes for test sandboxes for PXC - PT-107
This commit is contained in:
43
sandbox/servers/pxc/5.7/my.sandbox.cnf
Normal file
43
sandbox/servers/pxc/5.7/my.sandbox.cnf
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
[client]
|
||||||
|
user = msandbox
|
||||||
|
password = msandbox
|
||||||
|
port = PORT
|
||||||
|
socket = /tmp/PORT/mysql_sandboxPORT.sock
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
port = PORT
|
||||||
|
socket = /tmp/PORT/mysql_sandboxPORT.sock
|
||||||
|
pid-file = /tmp/PORT/data/mysql_sandboxPORT.pid
|
||||||
|
basedir = PERCONA_TOOLKIT_SANDBOX
|
||||||
|
datadir = /tmp/PORT/data
|
||||||
|
key_buffer_size = 16M
|
||||||
|
innodb_buffer_pool_size = 16M
|
||||||
|
innodb_data_home_dir = /tmp/PORT/data
|
||||||
|
innodb_log_group_home_dir = /tmp/PORT/data
|
||||||
|
innodb_data_file_path = ibdata1:10M:autoextend
|
||||||
|
innodb_log_file_size = 5M
|
||||||
|
log-bin = mysql-bin
|
||||||
|
relay_log = mysql-relay-bin
|
||||||
|
log_slave_updates
|
||||||
|
server-id = PORT
|
||||||
|
report-host = 127.0.0.1
|
||||||
|
report-port = PORT
|
||||||
|
log-error = /tmp/PORT/data/mysqld.log
|
||||||
|
innodb_lock_wait_timeout = 3
|
||||||
|
general_log
|
||||||
|
general_log_file = genlog
|
||||||
|
|
||||||
|
binlog_format = ROW
|
||||||
|
wsrep_provider = LIBGALERA
|
||||||
|
wsrep_cluster_address = CLUSTER_AD
|
||||||
|
wsrep_sst_receive_address = ADDR:RECEIVE_PRT
|
||||||
|
wsrep_node_incoming_address= ADDR:PORT
|
||||||
|
wsrep_slave_threads = 2
|
||||||
|
wsrep_cluster_name = CLUSTER_NAME
|
||||||
|
wsrep_provider_options = "gmcast.listen_addr=tcp://ADDR:LISTEN_PRT;"
|
||||||
|
wsrep_sst_method = rsync
|
||||||
|
wsrep_node_name = PORT
|
||||||
|
innodb_locks_unsafe_for_binlog = 1
|
||||||
|
innodb_autoinc_lock_mode = 2
|
||||||
|
wsrep-replicate-myisam
|
||||||
|
pxc_strict_mode = DISABLED
|
@@ -246,7 +246,9 @@ fi
|
|||||||
APP="${FORK:-"mysql"}"
|
APP="${FORK:-"mysql"}"
|
||||||
|
|
||||||
if [ $type = "cluster" -o $APP = "pxc" ]; then
|
if [ $type = "cluster" -o $APP = "pxc" ]; then
|
||||||
ip=$(perl -MNet::Address::IP::Local -le 'print Net::Address::IP::Local->public')
|
# disabled for now because used perl module is not available everywhere and in some distros it returns ipv6 address
|
||||||
|
# ip=$(perl -MNet::Address::IP::Local -le 'print Net::Address::IP::Local->public')
|
||||||
|
ip=$(hostname -i)
|
||||||
version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V --query_cache_size=0 --query_cache_type=0 --bind-address $ip 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
|
version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V --query_cache_size=0 --query_cache_type=0 --bind-address $ip 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
|
||||||
else
|
else
|
||||||
version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
|
version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
|
||||||
|
Reference in New Issue
Block a user