From 1fa01d783d106313d7dd0942294ecd9ccfc632fe Mon Sep 17 00:00:00 2001 From: Tomislav Plavcic Date: Tue, 21 Mar 2017 14:16:50 +0100 Subject: [PATCH] Changes for test sandboxes for PXC - PT-107 --- sandbox/servers/pxc/5.7/my.sandbox.cnf | 43 ++++++++++++++++++++++++++ sandbox/start-sandbox | 4 ++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 sandbox/servers/pxc/5.7/my.sandbox.cnf diff --git a/sandbox/servers/pxc/5.7/my.sandbox.cnf b/sandbox/servers/pxc/5.7/my.sandbox.cnf new file mode 100644 index 00000000..0cb994f2 --- /dev/null +++ b/sandbox/servers/pxc/5.7/my.sandbox.cnf @@ -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 diff --git a/sandbox/start-sandbox b/sandbox/start-sandbox index 0f3bbdd3..fcfa3b0d 100755 --- a/sandbox/start-sandbox +++ b/sandbox/start-sandbox @@ -246,7 +246,9 @@ fi APP="${FORK:-"mysql"}" 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`; else version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;