OpenShift on you own cloud Troy Dawson OpenShift Engineer, Red Hat - - PowerPoint PPT Presentation

openshift on you own cloud
SMART_READER_LITE
LIVE PREVIEW

OpenShift on you own cloud Troy Dawson OpenShift Engineer, Red Hat - - PowerPoint PPT Presentation

OpenShift on you own cloud Troy Dawson OpenShift Engineer, Red Hat tdawson@redhat.com November 1, 2013 2 Infrastructure-as-a-Service Servers in the Cloud You must build and manage everything (OS, App Servers, DB, App, etc.) How do I use


slide-1
SLIDE 1
slide-2
SLIDE 2

2

OpenShift

  • n you own cloud

Troy Dawson OpenShift Engineer, Red Hat tdawson@redhat.com November 1, 2013

slide-3
SLIDE 3

3

Infrastructure-as-a-Service

“How do I use this?”

Servers in the Cloud

You must build and manage everything (OS, App Servers, DB, App, etc.)

slide-4
SLIDE 4

4

Software-as-a-Service

“I’m not sure this does what I need.” You are restricted to the features of the 3rd Party application Someone else’s app in the Cloud (CRM, etc.)

slide-5
SLIDE 5

5

Red Hat’s platform as a service for applications in the cloud.

What is OpenShift?

slide-6
SLIDE 6

6

Now in 3 Delicious Flavors

OpenShift Online

  • Traditional OpenShift
  • Red Hat provides everything
  • You sit back and relax

OpenShift Origin

  • You build it from Source
  • You put it on your infrastructure

OpenShift Enterprise

  • Red Hat provides the software
  • You provide the infrastructure
slide-7
SLIDE 7

7

  • rigin

Public Cloud Service On- premise

  • r Private

Cloud Software Open Source Project FLAVORS OF OPENSHIFT

slide-8
SLIDE 8

8

RUNS ON IaaS OpenShift Origin and OpenShift Enterprise run on top of ... Infrastructure

OpenStack RHEV VMWare Amazon EC2 Rackspace Bare Metal

slide-9
SLIDE 9

9

  • Operations care about stability and performance
  • Developers just want environments without waiting

OpenShift Enterprise creates a peaceful environment for both parties

slide-10
SLIDE 10

10

  • Broker – Management host, orchestration of Nodes
  • Node – Compute host containing Gears
  • App – Your Application. An app contains one or more

gears, that contain one or more cartridges.

  • Gear – Allocation of fixed memory, compute, and

storage resources for running applications

  • Cartridge – A technology/framework (PHP, Perl,

Node.js, Ruby, Python, MySQL, etc.) to build applications

KEY TERMS

slide-11
SLIDE 11

11

First Demo (Done on OpenShift Online)

  • 1. Create an app called farmstand
  • Note: can now add cartridges when creating app
  • 2. Look at URL of fresh app.
  • http://farmstand-tdawson.rhcloud.com/
  • 3. Make changes to our code locally
  • This is a local git repository we are changing
  • Demo uses a shortcut, use whatever way you want
  • 4. Push changes up to server
  • Notice how it will add the various language modules to

the app and then compile if necessary.

  • 5. See change in page
  • http://farmstand-tdawson.rhcloud.com/
slide-12
SLIDE 12

12

slide-13
SLIDE 13

13

slide-14
SLIDE 14

14

slide-15
SLIDE 15

15

Installing nodejs modules Into home area

slide-16
SLIDE 16

16

slide-17
SLIDE 17

17

slide-18
SLIDE 18

18

slide-19
SLIDE 19

19

Second Demo (OpenShift Origin, local VM)

  • 1. Steps done before we started the demo
  • Setup OpenShift Origin locally
  • Created a cartridge designed for an experiment
  • Installed the cartridge onto our OpenShift Origin
  • 2. Show we can make apps on our Origin instance.
  • 3. List what cartridges are available.
  • Note: We now have an experiment cartridge
  • 4. Build an app using the experiment cartridge
  • 5. Look at experiment default page
  • This is on my local machine, not publicly available.
slide-20
SLIDE 20

20

slide-21
SLIDE 21

21

slide-22
SLIDE 22

22

Experiment Cartridge Home Made Goodness

slide-23
SLIDE 23

23

slide-24
SLIDE 24

24

slide-25
SLIDE 25

25

Third Demo (OpenShift Origin, local VM)

  • 1. Ensure the user can expand their quota.
  • 2. Show how the user can use the web client to
  • Create a scalable app
  • Modify scalable settings after created
  • Change quota on a per app basis
slide-26
SLIDE 26

26

slide-27
SLIDE 27

27

slide-28
SLIDE 28

28

slide-29
SLIDE 29

29

slide-30
SLIDE 30

30

Change this to scale the app.

slide-31
SLIDE 31

31

slide-32
SLIDE 32

32

slide-33
SLIDE 33

33

Set min and max gear scaling

slide-34
SLIDE 34

34

Give your gear more quota.

slide-35
SLIDE 35

35

slide-36
SLIDE 36

36

How does this all work?

slide-37
SLIDE 37

37

  • Broker – Management host, orchestration of Nodes
  • Node – Compute host containing Gears
  • App – Your Application. An app contains one or more

gears, that contain one or more cartridges.

  • Gear – Allocation of fixed memory, compute, and

storage resources for running applications

  • Cartridge – A technology/framework (PHP, Perl,

Node.js, Ruby, Python, MySQL, etc.) to build applications

KEY TERMS

slide-38
SLIDE 38

38

SERVER TYPES

Each OpenShift Origin server will be one of the following types:

  • Broker Host
  • Node Host
slide-39
SLIDE 39

39

BROKER An OpenShift Broker can manage multiple node hosts.

Fedora/RHEL Fedora/RHEL Fedora/RHEL

Brokers Node Node

Nodes are where User Applications live.

slide-40
SLIDE 40

40

BROKER

The Broker is responsible for state, DNS, and authentication.

slide-41
SLIDE 41

41

SELINUX

Fedora/RHEL Fedora/RHEL

Brokers Node Node SELinux Policies securely subdivide the Node instances.

slide-42
SLIDE 42

42

GEARS

RHEL RHEL

Brokers Node Node OpenShift GEARS represent secure containers in RHEL

slide-43
SLIDE 43

43

CARTRIDGES

Fedora/RHEL Fedora/RHEL

Brokers Node Node

Web Console Eclipse IDE Cmd Line JBOSS MYSQL

slide-44
SLIDE 44

44

CARTRIDGES

CUSTOM

Etc. Etc. Ruby Python

PHP Java

Postgres MySQL

OpenShift Default Cartridges

slide-45
SLIDE 45

45

SCALING

RHEL

HA-Proxy

MySQL

Java

Code

Java

Code

Java

Code

slide-46
SLIDE 46

46

COMMUNICATION

Communication from external clients occurs through the REST API The Broker then communicates through the messaging service to nodes

slide-47
SLIDE 47

47

HTTP FLOW

slide-48
SLIDE 48

48

COMPLETE PICTURE

slide-49
SLIDE 49

49

Languages, Databases, etc.

slide-50
SLIDE 50

50

Comments / Help / Get Involved

  • OpenShift Online: https://www.openshift.com/
  • OpenShift Origin: http://openshift.github.io/
  • Source code: https://github.com/openshift
  • Email: openshift@redhat.com
  • IRC: #openshift and #openshift-dev on freenode
  • Twitter: @openshift