A tiny application powered by Spring Boot to test MariaDB.
- Ubuntu 12.04 Precise 64bit
- MariaDB 10.1 (Galera Cluster)
There are three VM configurations: g1, g2, g3.
Each one is a master node of Galera Cluster.
vagrant up g1 g2 g3- Login to g1 by
vagrant ssh g1 - Copy content of
/etc/mysql/debian.cnfin g1 - Login to g2 by
vagrant ssh g2 - Replace content of
/etc/mysql/debian.cnfwith copied debian.cnf from g1 - Do same things in g3
- Restart hosts
- On g1, MariaDB should start with
service mysql start --wsrep-new-cluster
- On g1, MariaDB should start with
# launch
vagrant up g1
# login to g1 VM
vagrant ssh g1
# stop g1 VM
vagrant halt g1Execute as root user(sudo su - from vagrant user):
# start
service mysql start
# stop
service mysql stop
# show cluster status
mysql -uroot -ptest -e"show status like 'wsrep_%'"
# check query log
tail -f /var/log/mysql/mysql.logTo run, execute with Gradle wrapper:
./gradlew bootRunYou can configure JDBC connection with src/main/resources/application.yml.
Copyright © 2015 Soichiro Kashima.
Licensed under MIT License.
See the bundled LICENSE file for details.