rethinkdb on oracle linux

14
RethinkDB on Oracle Linux Johan Louwers – [email protected]

Upload: johan-louwers

Post on 16-Apr-2017

234 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: RethinkDB on Oracle Linux

RethinkDB on Oracle LinuxJohan Louwers – [email protected]

Page 2: RethinkDB on Oracle Linux

2Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

What is RethinkDB?RethinkDB is the first open-source, scalable JSON database built from the ground up for the realtime web. It inverts the traditional database architecture by exposing an exciting new access model – instead of polling for changes, the developer can tell RethinkDB to continuously push updated query results to applications in realtime. RethinkDB’s realtime push architecture dramatically reduces the time and effort necessary to build scalable realtime apps.

In addition to being designed from the ground up for realtime apps, RethinkDB offers a flexible query language, intuitive operations and monitoring APIs, and is easy to setup and learn.

RethinkDB“Running RethinkDB on Oracle Linux”

Page 3: RethinkDB on Oracle Linux

3Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

When is RethinkDB a good choice?RethinkDB is a great choice when your applications could benefit from realtime feeds to your data.

The query-response database access model works well on the web because it maps directly to HTTP’s request-response. However, modern applications require sending data directly to the client in realtime. Use cases where companies benefited from RethinkDB’s realtime push architecture include:

• Collaborative web and mobile apps• Streaming analytics apps• Multiplayer games• Realtime marketplaces• Connected devices

RethinkDB“Running RethinkDB on Oracle Linux”

Page 4: RethinkDB on Oracle Linux

4Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

3+1 main options 3+1 main options for running RethinkDB with Oracle Linux

Oracle Linux Bare Metal Oracle VM and Oracle Linux Oracle Compute Cloud Option 1 – 3 + Docker

Page 5: RethinkDB on Oracle Linux

5Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

Oracle Linux and RethinkDB on bare-metalEven though the tendency is to move more and more to virtualized and cloud based deployments a bare-metal deployment is still a good solution in certain cases.

Some pointers : • In case of high performance demands • In case of the lack of a private cloud and no option to move public• In case of a corporate rule to only use bare-metal deployment

Oracle Linux Bare Metal

Page 6: RethinkDB on Oracle Linux

6Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

Oracle Linux and RethinkDB on Oracle VMRunning systems on a virtualized environment is common way of deploying environments. You can use Oracle VM in combination with standard X86 hardware or Oracle Private Cloud Appliances to build a private cloud and run virtual machines with RethinkDB on this.

Some pointers : • Provides a flexible environment• Added HA solutions with Oracle VM• (semi-) automated deployment of RethinkDB systems• Self-Service portal functionality by using Oracle Enterprise Manager IaaS

Oracle VM and Oracle Linux

Page 7: RethinkDB on Oracle Linux

7Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

Oracle Linux and RethinkDB on Oracle CloudOracle Cloud is capable of hosting virtual Oracle Linux environments. By using Oracle cloud you are able to host Oracle Linux machines running RehtinkDB. This is the ideal way to start with RethinkDB and quickly setup an environment

Some pointers : • Provides a flexible environment• Cloud hosted – pay per use• (semi-) automated deployment of RethinkDB systems• Ability to use templates containing your specific RethinkDB installation

Oracle Compute Cloud

Page 8: RethinkDB on Oracle Linux

8Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

Oracle Linux and RethinkDB in combination with DockerDocker containers wrap up a piece of software in a complete filesystem that contains everything it needs to run: code, runtime, system tools, system libraries – anything you can install on a server. This guarantees that it will always run the same, regardless of the environment it is running in.

Some pointers : • Docker is a great way of dploying RethinkDB• Use the following command to get started : docker pull rethinkdb

Page 9: RethinkDB on Oracle Linux

9Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

RethinkDB installation and Google Protocol Buffers

Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.

• Google Protocol Buffers (ProtoBuf) is required for RethinkDB• ProtoBuf is not available as an RPM for Oracle Linux.• You will have to compile ProtoBuf yourself

$ git clone https://github.com/google/protobuf

$ ./autogen.sh

$ ./configure

$ make

$ make check

$ make install

Page 10: RethinkDB on Oracle Linux

10Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

RethinkDB installation on Oracle Linux

RethinkDB is not on the Oracle Linux YUM repository. You will have to use the RethinkDB YUM repository for CentOS

$ wget https://download.rethinkdb.com/centos/6/x86_64/rethinkdb.repo -O /etc/yum.repos.d/rethinkdb.repo

$ yum -y install rethinkdb

$ rm -f /etc/yum.repos.d/rethinkdb.repo

Page 11: RethinkDB on Oracle Linux

11Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

RethinkDB installation on Oracle Linux

To make life more easy…. We created a full installation script which can be downloaded from GitHub.

https://github.com/louwersj/Oracle-Linux-Scripting/blob/master/install_scripts/non-prod/installRetinkDB.sh

Page 12: RethinkDB on Oracle Linux

12Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

RethinkDB check installation

• Make sure RethinkDB is running • Make sure RethinkDB is available on localhost:8080

• Enable none-local interfaces by using --bind all

Page 13: RethinkDB on Oracle Linux

13Copyright © Capgemini 2015. All Rights ReservedRethinkDB on Oracle Linux– Johan Louwers

RethinkDB“Running RethinkDB on Oracle Linux”

Contact & questions

Johan Louwers

• Lead Architect – Capgemini Global Oracle Architect Office• Oracle Ace Director

Blog : johanlouwers.blogspot.comWeb : https://www.capgemini.com/experts/oracle-and-cloud-computing/johan-louwers

Twitter : @johanlouwersLinkedIn : https://www.linkedin.com/in/johanlouwersMail : [email protected] / [email protected]

Page 14: RethinkDB on Oracle Linux

The information contained in this presentation is proprietary.© 2014 Capgemini. All rights reserved.

www.capgemini.com

About CapgeminiWith almost 140,000 people in 40 countries, Capgemini is one of the world’s foremost providers of consulting, technology and outsourcing services. The Group reported 2013 global revenues of EUR 10.1 billion. Together with its clients, Capgemini creates and delivers business and technology solutions that fit their needs and drive the results they want. A deeply multicultural organization, Capgemini has developed its own way of working, the Collaborative Business ExperienceTM, and draws on Rightshore®, its worldwide delivery model.

Rightshore® is a trademark belonging to Capgemini