O'Reilly logo

MariaDB High Performance by Pierre MAVRO

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required