SlideShare une entreprise Scribd logo
1  sur  4
Télécharger pour lire hors ligne
Consistency or Bust: Breaking a Riak Cluster

                              Workstation Setup

   Introduction!                                                                       1
       Helper Commands!                                                                1

   Linux!                                                                              2
       General Notes!                                                                  2

       Software Installation!                                                          2

   OS X!                                                                               3
       General Notes!                                                                  3

       Software Install!                                                               3

   Windows !                                                                           3
       General Notes!                                                                  3

       Settings!                                                                       3

   Virtual Machine Adjustments !                                                       4

   Final Steps!                                                                        4

Introduction
These instructions will give quick steps into getting ready to run a Riak. The Linux steps
were tested with a clean Ubuntu Server 64bit 10.04 LTS and the OS X steps were done
on a fairly clean MacBook Pro running 10.6.8.

There are helper scripts in the root of the Riak folder for starting, stopping, and joining
the Riak nodes.

Helper Commands
 $ bash start.sh

 $ bash join.sh

 $ bash stop.sh
Consistency or Bust: Breaking a Riak Cluster


Linux
General Notes
Any version of Linux will be acceptable. If this is a clean virtual machine install, use
Ubuntu 10.04 Server LTS. It is command-line only, but has a pretty small footprint. The
instructions for setting up a Linux machine will be based on the Debian Linux family but
any any should work using the appropriate controls. The assumption is that this is
installed already with a base configuration. Nothing special is required from the OS
perspective.

Software Installation
 $ sudo apt-get install build-essential libncurses5-dev openssl

 $ sudo apt-get install libssl-dev git-core curl

 $ wget http://erlang.org/download/otp_src_R14B03.tar.gz

 $ tar zxvf otp_src_R14B03.tar.gz

 $ cd otp_src_R14B03

 $ ./configure && make && sudo make install

 $ cd ..

 $ git clone git://github.com/jkirkell/riak.git

 $ cd riak

 $ make all

 $ make devrel
   * the only difference between Bashoʼs repository and mine is that I added an additional dev host.

Follow the steps under Virtual Machine Adjustments to configure your Riak cluster to be
accessible from your host computer.
Consistency or Bust: Breaking a Riak Cluster


OS X
General Notes
XCode must be installed prior to performing the install steps below.

Software Install
 $ curl -O http://erlang.org/download/otp_src_R14B03.tar.gz

 $ tar -zxvf otp_src_R14B03.tar.gz

 $ cd otp_src_R14B03

 $ ./configure --enable-hipe --enable-smp-support --enable-threads 
 --enable-kernel-poll --enable-darwin-64bit

 $ make && sudo make install

 $ git clone git://github.com/jkirkell/riak.git

 $ cd riak

 $ make all

 $ make devrel
    * the only difference between Bashoʼs repository and mine is that I added an additional dev host.

Make sure to set the ulimit so you do not run into an file limites
 $ launchctl limit maxfiles 2048 8192



Windows
General Notes
If you are running Windows, you will have to install VirtualBox or some other
virtualization software and follow the same steps under Linux.

Settings
A safe configuration will be 6-8GB of disk space, 1GB RAM, and 1-2 virtual processors.
Take a snapshot also, it will allow you to start off at a good spot without having to redo
everything if you want to clean things up.
Consistency or Bust: Breaking a Riak Cluster

Virtual Machine Adjustments
If you plan to access your Riak cluster from the host, change your network settings to
be “Host Only” and run the following within the VM.

 $ sudo dhclient -r

 $ sudo dhclient

 $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/dev/dev1/etc/vm.args

 $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/dev/dev1/etc/app.config

 #repeat prior 2 steps replacing dev1 with dev2 - dev5

 $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/start.sh

 $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/join.sh

 $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/stop.sh




Final Steps
When everything is ready, we will start up the nodes and create the cluster.

 $ ~/riak/start.sh

 $ ~/riak/join.sh

Contenu connexe

Tendances

Providence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgradeProvidence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgradeAccenture
 
An Easy way to build a server cluster without top of rack switches (MEMO)
An Easy way to build a server cluster without top of rack switches (MEMO)An Easy way to build a server cluster without top of rack switches (MEMO)
An Easy way to build a server cluster without top of rack switches (MEMO)Naoto MATSUMOTO
 
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)Naoto MATSUMOTO
 
x86_64 Hardware Deep dive
x86_64 Hardware Deep divex86_64 Hardware Deep dive
x86_64 Hardware Deep diveNaoto MATSUMOTO
 
Virtual box installation
Virtual box installationVirtual box installation
Virtual box installationNiranjan Pandey
 
Install Quagga - CheatSheet -
Install Quagga - CheatSheet -Install Quagga - CheatSheet -
Install Quagga - CheatSheet -Naoto MATSUMOTO
 
Unbreakable VPN using Vyatta/VyOS - HOW TO -
Unbreakable VPN using Vyatta/VyOS - HOW TO -Unbreakable VPN using Vyatta/VyOS - HOW TO -
Unbreakable VPN using Vyatta/VyOS - HOW TO -Naoto MATSUMOTO
 
Cacti安装手册
Cacti安装手册Cacti安装手册
Cacti安装手册Yiwei Ma
 
Swift on raspberry pi
Swift on raspberry piSwift on raspberry pi
Swift on raspberry piiCHEF
 
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO) UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO) Naoto MATSUMOTO
 
Securing the network for VMs or Containers
Securing the network for VMs or ContainersSecuring the network for VMs or Containers
Securing the network for VMs or ContainersMarian Marinov
 
Managing cisco internetwork
Managing cisco internetworkManaging cisco internetwork
Managing cisco internetworkNOWAY
 
Snort Home Lab - Workshop
Snort Home Lab - Workshop Snort Home Lab - Workshop
Snort Home Lab - Workshop Hishan Shouketh
 
NexusでAnsibleやってみた
NexusでAnsibleやってみたNexusでAnsibleやってみた
NexusでAnsibleやってみたTakehiro Yokoishi
 
Catalystの設定シナリオ(メモ段階)
Catalystの設定シナリオ(メモ段階)Catalystの設定シナリオ(メモ段階)
Catalystの設定シナリオ(メモ段階)78tch
 
Installing OpenStack Juno using RDO on RHEL
Installing OpenStack Juno using RDO on RHELInstalling OpenStack Juno using RDO on RHEL
Installing OpenStack Juno using RDO on RHELopenstackstl
 
naoqiOS搭載ロボットへのROS移植
naoqiOS搭載ロボットへのROS移植naoqiOS搭載ロボットへのROS移植
naoqiOS搭載ロボットへのROS移植masaya kataoka
 

Tendances (20)

Providence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgradeProvidence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgrade
 
An Easy way to build a server cluster without top of rack switches (MEMO)
An Easy way to build a server cluster without top of rack switches (MEMO)An Easy way to build a server cluster without top of rack switches (MEMO)
An Easy way to build a server cluster without top of rack switches (MEMO)
 
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
 
Vt6655 linux user_guide
Vt6655 linux user_guideVt6655 linux user_guide
Vt6655 linux user_guide
 
x86_64 Hardware Deep dive
x86_64 Hardware Deep divex86_64 Hardware Deep dive
x86_64 Hardware Deep dive
 
Virtual box installation
Virtual box installationVirtual box installation
Virtual box installation
 
Install Quagga - CheatSheet -
Install Quagga - CheatSheet -Install Quagga - CheatSheet -
Install Quagga - CheatSheet -
 
Basic onos-tutorial
Basic onos-tutorialBasic onos-tutorial
Basic onos-tutorial
 
Unbreakable VPN using Vyatta/VyOS - HOW TO -
Unbreakable VPN using Vyatta/VyOS - HOW TO -Unbreakable VPN using Vyatta/VyOS - HOW TO -
Unbreakable VPN using Vyatta/VyOS - HOW TO -
 
Cacti安装手册
Cacti安装手册Cacti安装手册
Cacti安装手册
 
Swift on raspberry pi
Swift on raspberry piSwift on raspberry pi
Swift on raspberry pi
 
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO) UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
UNDOCUMENTED Vyatta vRouter: Unbreakable VPN Tunneling (MEMO)
 
Securing the network for VMs or Containers
Securing the network for VMs or ContainersSecuring the network for VMs or Containers
Securing the network for VMs or Containers
 
Managing cisco internetwork
Managing cisco internetworkManaging cisco internetwork
Managing cisco internetwork
 
Snort Home Lab - Workshop
Snort Home Lab - Workshop Snort Home Lab - Workshop
Snort Home Lab - Workshop
 
NexusでAnsibleやってみた
NexusでAnsibleやってみたNexusでAnsibleやってみた
NexusでAnsibleやってみた
 
Catalystの設定シナリオ(メモ段階)
Catalystの設定シナリオ(メモ段階)Catalystの設定シナリオ(メモ段階)
Catalystの設定シナリオ(メモ段階)
 
Installing OpenStack Juno using RDO on RHEL
Installing OpenStack Juno using RDO on RHELInstalling OpenStack Juno using RDO on RHEL
Installing OpenStack Juno using RDO on RHEL
 
Vyos clustering ipsec
Vyos clustering ipsecVyos clustering ipsec
Vyos clustering ipsec
 
naoqiOS搭載ロボットへのROS移植
naoqiOS搭載ロボットへのROS移植naoqiOS搭載ロボットへのROS移植
naoqiOS搭載ロボットへのROS移植
 

En vedette

La intercomunicació asl jocs online
La intercomunicació asl jocs onlineLa intercomunicació asl jocs online
La intercomunicació asl jocs onlinegueste6b9d7d
 
Scientific social tagging - background knowledge come to surface (AquaRing Pr...
Scientific social tagging - background knowledge come to surface (AquaRing Pr...Scientific social tagging - background knowledge come to surface (AquaRing Pr...
Scientific social tagging - background knowledge come to surface (AquaRing Pr...Stefano Bianchi
 
Quality Program Indicators Academic Interventions
Quality  Program  Indicators  Academic  InterventionsQuality  Program  Indicators  Academic  Interventions
Quality Program Indicators Academic Interventionsshannonkludt
 
My Life And Lesson
My Life And LessonMy Life And Lesson
My Life And Lessonguestd2c3f1
 
How to establish a remote connection using Techinline Remote Desktop
How to establish a remote connection using Techinline Remote DesktopHow to establish a remote connection using Techinline Remote Desktop
How to establish a remote connection using Techinline Remote DesktopAndrey Dankevich
 
Presentac.Romi 15
Presentac.Romi 15Presentac.Romi 15
Presentac.Romi 15puntili
 
Práca s knihami
Práca s knihamiPráca s knihami
Práca s knihamiguest384f2a
 

En vedette (8)

La intercomunicació asl jocs online
La intercomunicació asl jocs onlineLa intercomunicació asl jocs online
La intercomunicació asl jocs online
 
Scientific social tagging - background knowledge come to surface (AquaRing Pr...
Scientific social tagging - background knowledge come to surface (AquaRing Pr...Scientific social tagging - background knowledge come to surface (AquaRing Pr...
Scientific social tagging - background knowledge come to surface (AquaRing Pr...
 
Quality Program Indicators Academic Interventions
Quality  Program  Indicators  Academic  InterventionsQuality  Program  Indicators  Academic  Interventions
Quality Program Indicators Academic Interventions
 
My Life And Lesson
My Life And LessonMy Life And Lesson
My Life And Lesson
 
How to establish a remote connection using Techinline Remote Desktop
How to establish a remote connection using Techinline Remote DesktopHow to establish a remote connection using Techinline Remote Desktop
How to establish a remote connection using Techinline Remote Desktop
 
Presentac.Romi 15
Presentac.Romi 15Presentac.Romi 15
Presentac.Romi 15
 
Práca s knihami
Práca s knihamiPráca s knihami
Práca s knihami
 
Breaking a riak cluster
Breaking a riak clusterBreaking a riak cluster
Breaking a riak cluster
 

Similaire à Configure a Riak Cluster

Lotus Foundations Start 1 0 English Version
Lotus Foundations Start 1 0 English VersionLotus Foundations Start 1 0 English Version
Lotus Foundations Start 1 0 English VersionEnzo Stanzione
 
Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5Carlos Eduardo
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!All Things Open
 
Nevmug Lighthouse Automation7.1
Nevmug   Lighthouse   Automation7.1Nevmug   Lighthouse   Automation7.1
Nevmug Lighthouse Automation7.1csharney
 
Installation of oracle 12c RAC on linux vm
Installation of oracle 12c RAC  on linux vmInstallation of oracle 12c RAC  on linux vm
Installation of oracle 12c RAC on linux vmRon Morgan
 
How tos nagios - centos wiki
How tos nagios - centos wikiHow tos nagios - centos wiki
How tos nagios - centos wikishahab071
 
Deployment with Ruby on Rails
Deployment with Ruby on RailsDeployment with Ruby on Rails
Deployment with Ruby on RailsJonathan Weiss
 
Vagrant are you still develop in a non-virtual environment-
Vagrant  are you still develop in a non-virtual environment-Vagrant  are you still develop in a non-virtual environment-
Vagrant are you still develop in a non-virtual environment-Anatoly Bubenkov
 
Packaging in Python? Don't Roll the Dice.
Packaging in Python? Don't Roll the Dice.Packaging in Python? Don't Roll the Dice.
Packaging in Python? Don't Roll the Dice.ldaws
 
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606Eunice Lin
 
14038356 installation-guide-of-centos-5
14038356 installation-guide-of-centos-514038356 installation-guide-of-centos-5
14038356 installation-guide-of-centos-5Hind Sahel
 
01 - Introduction to Version Control
01 - Introduction to Version Control01 - Introduction to Version Control
01 - Introduction to Version ControlSergii Shmarkatiuk
 
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQDocker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQJérôme Petazzoni
 
Docker Introduction + what is new in 0.9
Docker Introduction + what is new in 0.9 Docker Introduction + what is new in 0.9
Docker Introduction + what is new in 0.9 Jérôme Petazzoni
 
Os dev tool box
Os dev tool boxOs dev tool box
Os dev tool boxbpowell29a
 

Similaire à Configure a Riak Cluster (20)

Dev stacklabguide
Dev stacklabguideDev stacklabguide
Dev stacklabguide
 
Devstack lab guide
Devstack lab guideDevstack lab guide
Devstack lab guide
 
Lotus Foundations Start 1 0 English Version
Lotus Foundations Start 1 0 English VersionLotus Foundations Start 1 0 English Version
Lotus Foundations Start 1 0 English Version
 
Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5Instalando Cacti no CentOS 5
Instalando Cacti no CentOS 5
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!
 
Nevmug Lighthouse Automation7.1
Nevmug   Lighthouse   Automation7.1Nevmug   Lighthouse   Automation7.1
Nevmug Lighthouse Automation7.1
 
Installation of oracle 12c RAC on linux vm
Installation of oracle 12c RAC  on linux vmInstallation of oracle 12c RAC  on linux vm
Installation of oracle 12c RAC on linux vm
 
How tos nagios - centos wiki
How tos nagios - centos wikiHow tos nagios - centos wiki
How tos nagios - centos wiki
 
Deployment with Ruby on Rails
Deployment with Ruby on RailsDeployment with Ruby on Rails
Deployment with Ruby on Rails
 
Vagrant are you still develop in a non-virtual environment-
Vagrant  are you still develop in a non-virtual environment-Vagrant  are you still develop in a non-virtual environment-
Vagrant are you still develop in a non-virtual environment-
 
Packaging in Python? Don't Roll the Dice.
Packaging in Python? Don't Roll the Dice.Packaging in Python? Don't Roll the Dice.
Packaging in Python? Don't Roll the Dice.
 
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
 
Foss Gadgematics
Foss GadgematicsFoss Gadgematics
Foss Gadgematics
 
14038356 installation-guide-of-centos-5
14038356 installation-guide-of-centos-514038356 installation-guide-of-centos-5
14038356 installation-guide-of-centos-5
 
01 - Introduction to Version Control
01 - Introduction to Version Control01 - Introduction to Version Control
01 - Introduction to Version Control
 
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQDocker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
 
Docker Introduction + what is new in 0.9
Docker Introduction + what is new in 0.9 Docker Introduction + what is new in 0.9
Docker Introduction + what is new in 0.9
 
Os dev tool box
Os dev tool boxOs dev tool box
Os dev tool box
 
A N T I A V
A N T I  A VA N T I  A V
A N T I A V
 
1.2 boot the system v2
1.2 boot the system v21.2 boot the system v2
1.2 boot the system v2
 

Dernier

Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Dernier (20)

Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

Configure a Riak Cluster

  • 1. Consistency or Bust: Breaking a Riak Cluster Workstation Setup Introduction! 1 Helper Commands! 1 Linux! 2 General Notes! 2 Software Installation! 2 OS X! 3 General Notes! 3 Software Install! 3 Windows ! 3 General Notes! 3 Settings! 3 Virtual Machine Adjustments ! 4 Final Steps! 4 Introduction These instructions will give quick steps into getting ready to run a Riak. The Linux steps were tested with a clean Ubuntu Server 64bit 10.04 LTS and the OS X steps were done on a fairly clean MacBook Pro running 10.6.8. There are helper scripts in the root of the Riak folder for starting, stopping, and joining the Riak nodes. Helper Commands $ bash start.sh $ bash join.sh $ bash stop.sh
  • 2. Consistency or Bust: Breaking a Riak Cluster Linux General Notes Any version of Linux will be acceptable. If this is a clean virtual machine install, use Ubuntu 10.04 Server LTS. It is command-line only, but has a pretty small footprint. The instructions for setting up a Linux machine will be based on the Debian Linux family but any any should work using the appropriate controls. The assumption is that this is installed already with a base configuration. Nothing special is required from the OS perspective. Software Installation $ sudo apt-get install build-essential libncurses5-dev openssl $ sudo apt-get install libssl-dev git-core curl $ wget http://erlang.org/download/otp_src_R14B03.tar.gz $ tar zxvf otp_src_R14B03.tar.gz $ cd otp_src_R14B03 $ ./configure && make && sudo make install $ cd .. $ git clone git://github.com/jkirkell/riak.git $ cd riak $ make all $ make devrel * the only difference between Bashoʼs repository and mine is that I added an additional dev host. Follow the steps under Virtual Machine Adjustments to configure your Riak cluster to be accessible from your host computer.
  • 3. Consistency or Bust: Breaking a Riak Cluster OS X General Notes XCode must be installed prior to performing the install steps below. Software Install $ curl -O http://erlang.org/download/otp_src_R14B03.tar.gz $ tar -zxvf otp_src_R14B03.tar.gz $ cd otp_src_R14B03 $ ./configure --enable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --enable-darwin-64bit $ make && sudo make install $ git clone git://github.com/jkirkell/riak.git $ cd riak $ make all $ make devrel * the only difference between Bashoʼs repository and mine is that I added an additional dev host. Make sure to set the ulimit so you do not run into an file limites $ launchctl limit maxfiles 2048 8192 Windows General Notes If you are running Windows, you will have to install VirtualBox or some other virtualization software and follow the same steps under Linux. Settings A safe configuration will be 6-8GB of disk space, 1GB RAM, and 1-2 virtual processors. Take a snapshot also, it will allow you to start off at a good spot without having to redo everything if you want to clean things up.
  • 4. Consistency or Bust: Breaking a Riak Cluster Virtual Machine Adjustments If you plan to access your Riak cluster from the host, change your network settings to be “Host Only” and run the following within the VM. $ sudo dhclient -r $ sudo dhclient $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/dev/dev1/etc/vm.args $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/dev/dev1/etc/app.config #repeat prior 2 steps replacing dev1 with dev2 - dev5 $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/start.sh $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/join.sh $ sed -i ‘s/127.0.0.1/10.37.129.4/g’ ~/riak/stop.sh Final Steps When everything is ready, we will start up the nodes and create the cluster. $ ~/riak/start.sh $ ~/riak/join.sh