SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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移植
 

Destacado

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
 

Destacado (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
 

Similar a 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
 

Similar a 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
 

Último

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Último (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

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