Book Image

MariaDB High Performance

By : Pierre Mavro
Book Image

MariaDB High Performance

By: Pierre Mavro

Overview of this book

Table of Contents (18 chapters)
MariaDB High Performance
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing and configuring a dual master


As shown in the previous chapters, you can use Vagrantfile to easily install MariaDB:

# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
#
VAGRANTFILE_API_VERSION = "2"

# Insert all your Vms with configs
boxes = [
    { :name => :master1,        :role      => 'db',   :ip => '192.168.33.31' }, # master node 1
    { :name => :master2,        :role      => 'db',   :ip => '192.168.33.32' }, # master node 2
    { :name => :loadbalancer,   :role      => 'lb',   :ip => '192.168.33.33' }, # load balancer 1
    { :name => :loadbalancer2,  :role      => 'lb',   :ip => '192.168.33.34' }, # load balancer 2
    { :name => :drbd1,          :role      => 'drbd', :ip => '192.168.33.41' }, # drbd 1
    { :name => :drbd2,          :role      => 'drbd', :ip => '192.168.33.42' }, # drbd 2
]

$install_common = <<INSTALL
aptitude update
DEBIAN_FRONTEND...