{"id":1833,"date":"2016-04-20T20:28:19","date_gmt":"2016-04-21T00:28:19","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=1833"},"modified":"2018-01-12T13:59:19","modified_gmt":"2018-01-12T18:59:19","slug":"how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/","title":{"rendered":"How to Setup a Galera Arbitrator on Ubuntu 14"},"content":{"rendered":"<h1>How to Setup a Galera Arbitrator on Ubuntu 14<\/h1>\n<p>A Galera cluster has a minimum require to have 3 nodes to function correctly and have an healthy quorum(or an odd number of nodes if you want to go over 3 nodes). In the event that you want to run Galera cluster on 2 nodes, you can substitute the 3rd database node by an arbitrator which will act as your 3rd member of your quorum. The same logic can be apply if you want to run 4 database nodes but keep an healthy quorum. The Galera Arbitrator (garbd, for short) will ensure that the cluster does not lose its quorum. It needs to be installed on a server outside the Galera cluster and will generate minimum load there so a smaller machine can be used.<\/p>\n<h2>GETTING STARTED<\/h2>\n<p>To complete this guide, you will need the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Servers<\/a>) with Ubuntu 14.04 LTS installed<\/p>\n<h2>Installing Arbitrator<\/h2>\n<p>We begin by installing the Galera packages and repository:<\/p>\n<p><code>apt-get install software-properties-common<br \/>\napt-key adv --keyserver keyserver.ubuntu.com --recv BC19DDBA<\/code><\/p>\n<p>Create a repository file and add it in the source list, \/etc\/apt\/sources.list.d\/galera.list.<\/p>\n<p><code>deb http:\/\/releases.galeracluster.com\/ubuntu trusty main<br \/>\napt-get update<br \/>\napt-get install galera-3 galera-arbitrator-3<\/code><\/p>\n<p>Once this is installed, you only need one command to have the galera arbitrator connect to the cluster. Replace the IPs and cluster name with your current cluster values:<\/p>\n<p><code>garbd \u2013a gcomm:\/\/192.168.0.1,192.168.0.2 \u2013g cluster_name<\/code><\/p>\n<p>We will now edit the default Ubuntu Galera arbitrator file so that garbd will start up with the proper parameters.<\/p>\n<p><code class=\"gris\"># Copyright (C) 2012 Codership Oy<br \/>\n # This config file is to be sourced by garb service script.<br \/>\n# A comma-separated list of node addresses (address[:port]) in the cluster<br \/>\n # GALERA_NODES=\"192.168.0.1 192.168.0.2\"<br \/>\n# Galera cluster name, should be the same as on the rest of the nodes.<br \/>\n # GALERA_GROUP=\"cluster_name\"<br \/>\n# Optional Galera internal options string (e.g. SSL settings)<br \/>\n # see http:\/\/galeracluster.com\/documentation-webpages\/galeraparameters.html<br \/>\n # GALERA_OPTIONS=\"\"<br \/>\n# Log file for garbd. Optional, by default logs to syslog<br \/>\n # LOG_FILE=\"\"<\/code><\/p>\n<p>You can then start the garbd service.<\/p>\n<p><code>service garbd start<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>You have a Galera Cluster running 2 database node and a separate arbitrator to keep the quorum healthy. Let us know how your Galera Cluster handle your workload. If this guide was helpful to you, kindly share it with others who may also be interested. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Learn how to correclty setup a Galera Cluster running 2 database node using  Galera Arbitrator on Ubuntu 14.04 LTS<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61,75,50],"tags":[],"class_list":["post-1833","post","type-post","status-publish","format-standard","hentry","category-database","category-ha-clustering","category-tutorials","operating_system-ubuntu-14-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Setup a Galera Arbitrator on Ubuntu 14 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to setup a Galera Arbitrator on your Ubuntu 14.04 Server. Read now &amp; Ensure that the cluster does not lose its quorum!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Setup a Galera Arbitrator on Ubuntu 14 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to setup a Galera Arbitrator on your Ubuntu 14.04 Server. Read now &amp; Ensure that the cluster does not lose its quorum!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-04-21T00:28:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-12T18:59:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to Setup a Galera Arbitrator on Ubuntu 14\",\"datePublished\":\"2016-04-21T00:28:19+00:00\",\"dateModified\":\"2018-01-12T18:59:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\\\/\"},\"wordCount\":289,\"commentCount\":0,\"articleSection\":[\"Database\",\"HA &amp; Clustering\",\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\\\/\",\"name\":\"How to Setup a Galera Arbitrator on Ubuntu 14 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"datePublished\":\"2016-04-21T00:28:19+00:00\",\"dateModified\":\"2018-01-12T18:59:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to setup a Galera Arbitrator on your Ubuntu 14.04 Server. Read now & Ensure that the cluster does not lose its quorum!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Setup a Galera Arbitrator on Ubuntu 14\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\\\/\\\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Setup a Galera Arbitrator on Ubuntu 14 - Globo.Tech","description":"This tutorial will show you how to setup a Galera Arbitrator on your Ubuntu 14.04 Server. Read now & Ensure that the cluster does not lose its quorum!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/","og_locale":"en_US","og_type":"article","og_title":"How to Setup a Galera Arbitrator on Ubuntu 14 - Globo.Tech","og_description":"This tutorial will show you how to setup a Galera Arbitrator on your Ubuntu 14.04 Server. Read now & Ensure that the cluster does not lose its quorum!","og_url":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/","og_site_name":"Globo.Tech","article_published_time":"2016-04-21T00:28:19+00:00","article_modified_time":"2018-01-12T18:59:19+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to Setup a Galera Arbitrator on Ubuntu 14","datePublished":"2016-04-21T00:28:19+00:00","dateModified":"2018-01-12T18:59:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/"},"wordCount":289,"commentCount":0,"articleSection":["Database","HA &amp; Clustering","Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/","url":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/","name":"How to Setup a Galera Arbitrator on Ubuntu 14 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-04-21T00:28:19+00:00","dateModified":"2018-01-12T18:59:19+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to setup a Galera Arbitrator on your Ubuntu 14.04 Server. Read now & Ensure that the cluster does not lose its quorum!","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-setup-a-galera-arbitrator-on-ubuntu-14-04-lts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Setup a Galera Arbitrator on Ubuntu 14"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/1833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=1833"}],"version-history":[{"count":10,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/1833\/revisions"}],"predecessor-version":[{"id":4076,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/1833\/revisions\/4076"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=1833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=1833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=1833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}