simplified test framework (MXS-1230)

[MXS-1231] define test setup Created: 2017-04-19  Updated: 2017-05-31  Resolved: 2017-05-31

Status: Closed
Project: MariaDB MaxScale
Component/s: test
Affects Version/s: None
Fix Version/s: 2.1.4

Type: Sub-Task Priority: Major
Reporter: Timofey Turenko Assignee: Timofey Turenko
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2017-34

 Description   

define test configuration: backend, way to connect to backend, Maxscale configuration(s), way to configure Maxscale for test, way to describe backend and send this info to test script/application

description should be in the form of some readme inside Maxscale source



 Comments   
Comment by Timofey Turenko [ 2017-05-04 ]

multiple servers can be run on the one machine:

cnf.example:

[mysqld1]
log-bin=mar-bin
binlog-format=row
max_long_data_size=1000000000
innodb_log_file_size=2000000000
slave-skip-errors=all
server_id=1
user            = mysql
pid-file        = /var/run/mysqld/mysqld1.pid
socket          = /var/run/mysqld/mysqld1.sock
port            = 3306
datadir         =  /data/mysql/mysql1
 
[mysqld2]
log-bin=mar-bin
binlog-format=row
max_long_data_size=1000000000
innodb_log_file_size=2000000000
slave-skip-errors=all
server_id=2
user            = mysql
pid-file        = /var/run/mysqld/mysqld2.pid
socket          = /var/run/mysqld/mysqld2.sock
port            = 3307
datadir         = /data/mysql/mysql2

sudo mysql_install_db --defaults-file=/home/vagrant/server1.cnf --user=mysql --datadir=/data/mysql/mysql1
sudo mysql_install_db --defaults-file=/home/vagrant/server1.cnf --user=mysql --datadir=/data/mysql/mysql2
 
sudo chown mysql:mysql -R /data
sudo mkdir /var/run/mysqld
sudo chown mysql:mysql /var/run/mysqld
 
sudo mysqld_multi  --defaults-file=/home/vagrant/server2.cnf  start

Comment by Timofey Turenko [ 2017-05-04 ]

client connections:

sudo mysql --socket=/var/run/mysqld/mysqld1.sock
sudo mysql --socket=/var/run/mysqld/mysqld2.sock

Comment by Timofey Turenko [ 2017-05-31 ]

very simple: 4 MariaDB servers running on one machine, Maxscale and tests are also on this machine.
Tests are limited by Master/Slave backend onlty

Generated at Thu Feb 08 04:05:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.