Está en la página 1de 144

OPENSHIFT ENTERPRISE

TRAINING
PRESENTED
BY
GRANT
SHIPLEY
MICIAH
MASTERS
!"#$%!
Introductions Installation Usage
Overview
WHO AM I?
Senlor Manager, roducL Markeung
8eally, l am a ueveloper LvangellsL
8ed PaL (7 ?ears), novell (2 years), Caldera / SCC (3 years)
!ava / P / node.[s / Moblle /Mongou8 / MySCL/ osLgreSCL
Cpen source pro[ecLs
WHO IS MICIAH?
Mlclah MasLers
Soware Lnglneer, CpenShl LnLerprlse
SLarLed aL 8ed PaL ln !uly 2012
C / shell / Cnu/Llnux sysLem admlnlsLrauon
Cpen source pro[ecL
WHO ARE YOU?
WHAT WILL YOU LEARN?
Pow Lo lnsLall CpenShl LnLerprlse
Pow Lo congure and admlnlsLer CpenShl LnLerprlse
Pow Lo add carLrldges
Pow Lo use CpenShl LnLerprlse for deploymenL
Pow Lo use CpenShl LnLerprlse for developmenL
ASSUMPTIONS
?ou wanL Lo learn how Lo use CpenShl LnLerprlse
?ou can wrlLe some form of code
?ou have your own lapLop
?ou wlll ask quesuons
?ou know how Lo use 8ed PaL LnLerprlse Llnux
?ou have an SSP cllenL lnsLalled on your lapLop
TRAINING SCHEDULE
Some lecLure
MosLly labs
LeL's seL our break schedule
Lunch (Lhe mosL lmporLanL Lhlng)
BORING........
DEMO
HOUSEKEEPING
OpenStack
Two virtual machines
Broker Host
Node Host
RHEL Pre-installed
Lab Manual
32 Labs (less talking -
more doing)
Printed copy
Online Material
training.runcloudrun.com
HTML and PDF manual
Source code and scripts

SWAG
T-Shirts
USB Bottle openers
Reference cards
CLASS MATERIAL
LAB MANUAL
ulvlded lnLo Lhree parLs
lnsLallauon and Congurauon
AdmlnlsLrauon
usage
OpenShift
HISTORY
OpenShift
'()*% )+#,+-#.
LEVEL SET
Cloud compuung wlll
leed all Lhe chlldren
ShelLer all Lhe homeless
CreaLe world peace
Save us from Lhe zomble apocalypse
AuLomaglcally correcL your Lerrlble phoLos
HYPE CYCLE






!"#$ &# ' ()* +,-)./
Servers ln Lhe Cloud
?ou musL bulld and manage everyLhlng
(CS, App Servers, u8, App, eLc.)
IaaS




!'01 2#+ )(3* +,-) &#*)
$,4+ ' 2**&5/
?ou are resLrlcLed Lo Lhe feaLures of Lhe 3rd arLy appllcauon
Someone else's app ln Lhe Cloud (C8M, eLc.)
SaaS
Quickly build the Application that YOU need for
Your Group, your Enterprise, your next great idea!
Big data, mobile, social
You code the application, We run it for you
Leverage the ease, scale and power of the Cloud



Code ueploy Ln[oy
PaaS
EVERYONE GETS ALONG
Cperauons care abouL sLablllLy and performance
uevelopers [usL wanL envlronmenLs wlLhouL walung
CpenShl LnLerprlse creaLes a peaceful
envlronmenL for boLh parues
OpenShift
)/#$01-23 )+#,+-#.
origin
Public
Cloud
Service
On-
premise
or Private
Cloud
Software
Open
Source
Project
FLAVORS OF OPENSHIFT
Developer IDE
Integrations
Web Browser
Console
Command Line
Tooling
REST APIs
INTERACTIONS
RUNS ON IaaS
OpenShift Enterprise is a PaaS that runs on top of..... Infrastructure
CpenSLack 8PLv vMWare
Amazon LC2 8ackspace 8are MeLal
FOUNDATION
The foundation of OpenShift Enterprise is Red Hat Enterprise Linux
8PLL
8PLL
8PLL
8PLL 8PLL 8PLL
SERVER TYPES
Lach CpenShl LnLerprlse server wlll be one of Lhe followlng Lypes:
8roker PosL
node PosL
BROKER
An OpenShift Broker can manage multiple node hosts.
8PLL 8PLL
8PLL
Brokers
Node Node
Nodes are where User Applications live.
BROKER
1he 8roker ls responslble for sLaLe, unS, and auLhenucauon.
NODE
1he node hosLs are responslble for holdlng appllcauon gears.
SELINUX
8PLL
8PLL
Brokers
Node Node
SLLlnux ollcles securely subdlvlde
Lhe node lnsLances.
GEARS
8PLL
8PLL
Brokers
Node Node
CpenShl CLA8S represenL secure
conLalners ln 8PLL
WORKFLOW
8PLL
8PLL
Brokers
Node Node
Web Console
Lcllpse luL
Cmd Llne
OpenShift
Gear
CARTRIDGES
8PLL
8PLL
Brokers
Node Node
Web Console
Lcllpse luL
Cmd Llne
JBOSS MYSQL
CARTRIDGES
CUSTOM
Etc.
Etc.
Ruby
Python
PHP
Java
Postgres
MySQL
CpenShl uefaulL
CarLrldges
RHEL RHEL
Developer pushes
application code via
GIT source code
management system

Git Protocol / ssh

Broker Node Node Node
RHEL

Push

JBoss
Code
Git
Repo MySQL
WORKFLOW
SCALING
RHEL
HA-Proxy
MySQL
Java
Code
Java
Code
Java
Code
COMMUNICATION
Communlcauon from exLernal cllenLs occurs Lhrough Lhe 8LS1 Al
1he 8roker Lhen communlcaLes Lhrough Lhe messaglng servlce Lo nodes
HTTP FLOW

COMPLETE PICTURE
LAB 1
8ead Lhe overvlew chapLer
8eglsLer Lhe sysLem and add subscrlpuons
updaLe Lhe operaung sysLem
Congure Lhe sysLem clock
LAB 1
15 MINUTES
LAB 1
QUESTIONS?
LAB 2
8lnu
LnvlronmenL varlables
CreaLe a daLabase for your example.com domaln
use Lhe new nameserver
CoLchas
LAB 2
20 MINUTES
LAB 2
QUESTIONS?
LAB 3
Congure dhcllenL
Congure hosLname
LAB 3
5 MINUTES
LAB 3
QUESTIONS?
LAB 4
lnsLall Mongou8
Congure Mongou8
verlfy Mongou8 ls worklng
LAB 4
10 MINUTES
LAB 4
QUESTIONS?
LAB 5
lnsLall AcuveMC
Congure AcuveMC
updaLe rewall
verlfy lL works
LAB 5
10 MINUTES
LAB 5
QUESTIONS?
LAB 6
lnsLall MCollecuve CllenL
Congure MCollecuve CllenL
LAB 6
10 MINUTES
LAB 6
QUESTIONS?
LAB 7
lnsLall 8roker appllcauon
CeneraLe access keys
Congure SLLlnux and 8oolean varlables
Changlng 8roker congurauon
LAB 7
15 MINUTES
LAB 7
QUESTIONS?
LAB 8
Congure 8roker pluglns
unS plugln
AuLhenucauon plugln
CreaLe Mongou8 accounL
Congure SLLlnux and 8oolean varlables
Changlng 8roker congurauon
LAB 8
15 MINUTES
LAB 8
QUESTIONS?
LAB 9
lnsLall web console
Congure auLhenucauon for web console
LAB 9
10 MINUTES
LAB 9
QUESTIONS?
LAB 10
Congure node hosL
SeL sysLem clock
8eglsLer node wlLh unS enLry
Congure SSP auLhenucauon
LAB 10
20 MINUTES
LAB 10
QUESTIONS?
LAB 11
lnsLall MCollecuve on node hosL
Congure MCollecuve on node hosL
uslng S1CM (Slmple 1exL CrlenLaLed Messaglng roLocol
LAB 11
10 MINUTES
LAB 11
QUESTIONS?
LAB 12
lnsLall core node packages
lnsLall carLrldges / runumes node hosL wlll supporL
LAB 12
10 MINUTES
LAB 12
QUESTIONS?
LAB 13
Congure AM namespace module
Congure Llnux ConLrol Croups (cgroups)
Congure dlsk quoLas
LAB 13
10 MINUTES
LAB 13
QUESTIONS?
LAB 14
Congure SLLlnux (even more)
Congure SysLem ConLrol Semng
LAB 14
5 MINUTES
LAB 14
QUESTIONS?
LAB 15
Congure SSP Lo pass Cl1_SSP varlable
Congure porL proxy
8ebooL Lhe node
llnally, we geL Lo LesL Lhe seLup!
LAB 15
20 MINUTES
LAB 15
QUESTIONS?
LAB 16
Congure local machlne (your lapLop), for unS resoluuon
LAB 16
10 MINUTES
LAB 16
QUESTIONS?
LAB 17
LlsL avallable carLrldges
lnsLall !8oss carLrldges
Clearlng broker appllcauon cache
lnsLall osLgreSCL carLrldge
lnsLall ul? carLrldge
LAB 17
10 MINUTES
LAB 17
QUESTIONS?
LAB 18
Managlng resources
uefaulL gear quoLa and slze
number of allowed gears
Congurlng gear Lypes for a user
LAB 18
10 MINUTES
LAB 18
QUESTIONS?
LAB 19
lnLroducuon Lo dlsLrlcLs
Lnable dlsLrlcLs
opulaLe dlsLrlcL wlLh node hosL
Congure dlsLrlcL capaclLy
LAB 19
10 MINUTES
LAB 19
QUESTIONS?
LAB 20
lnsLall 8PC cllenL Lools
Wlndows
CS x
Llnux
Any CS wlLh 8uby
LAB 20
15 MINUTES
LAB 20
QUESTIONS?
LAB 21
Congure 8PC Lools (broker.example.com)
8un rhc seLup
LAB 21
10 MINUTES
LAB 21
QUESTIONS?
LAB 22
Creaung our rsL appllcauon (walL, really? - ?es, nally.)
undersLandlng dlrecLory sLrucLure
LdlL Lhe source code
ueploy changes Lo your gear
Lnable hoL deploymenL
LAB 22
30 MINUTES
LAB 22
QUESTIONS?
LAB 23
Managlng Appllcauons
Cleanlng up appllcauons
SLarL / SLop / 8esLarL appllcauons
vlewlng appllcauon deLalls
SSP Lo appllcauon gear
vlewlng log les
Addlng cusLom domaln names
ueleung an appllcauon
LAB 23
30 MINUTES
LAB 23
QUESTIONS?
LAB 24
uslng carLrldges
Addlng MySCL Lo an appllcauon
Modlfy P code Lo use MySCL
Managlng carLrldges
uslng porL forwardlng
LAB 24
30 MINUTES
LAB 24
QUESTIONS?
LAB 25
uslng Lhe web console
LAB 25
10 MINUTES
LAB 25
QUESTIONS?
LAB 26
Pow scallng works
CreaLe a scaled appllcauon
AuLomauc scallng
Manual scallng

LAB 26
15 MINUTES
LAB 26
QUESTIONS?
LAB 27
CreaLe a ul? appllcauon
SLarL and SLop scrlpLs

LAB 27
10 MINUTES
LAB 27
QUESTIONS?
LAB 28
CreaLe a !8oss LA appllcauon
Addlng marker les
8ulldlng a 1CuC appllcauon
Lnable Cul
Creaung 8LS1ful web servlce
ueploylng !ava appllcauons

LAB 28
30 MINUTES
LAB 28
QUESTIONS?
LAB 29
uslng !enklns for Cl
Addlng a !enklns server
Congurlng !enklns bullder
Addlng !enklns Lo your !ava appllcauon

LAB 29
30 MINUTES
LAB 29
QUESTIONS?
LAB 30
uslng !8oss 1ools
uownloadlng Lcllpse
lnsLalllng !8oss 1ools
Congure !8oss 1ools
Creaung appllcauons
vlewlng logs
orL forwardlng
Semng up daLabase ln Lcllpse

LAB 30
30 MINUTES
LAB 30
QUESTIONS?
LAB 31
uslng qulck sLarLs

LAB 31
10 MINUTES
LAB 31
QUESTIONS?
LAB 32
Creaung your own qulck sLarL

LAB 32
30 MINUTES
LAB 32
QUESTIONS?
DONE!
#4567879:6
)4;946
)79<94
OpenShift Enterprise 1.0
Origin Productization
1.1
Fixes
Dev Console
1.2
Websockets
New Cartridge

2.0
PaaS Admin
Console
Full Service GA
Pay per use + Add-ons
Partners II
Community Maturity
Advanced
Cartridge
Spec
Project
Launched
Crossed the
100K apps mark


Developer
Preview
Launched
OPENSHIFT
OpenShift 2011-2013 Roadmap
2012 2011 2013
=>76 -4?6:5@645 >4A
-Advanced u8 & lS Scallng
-vlslblllLy and ManagemenL
-Covernance & Charge-back
-ALCM lmprovemenLs
-More laaSs & CarLrldges
1.3
Admin Console(Preview)
Cartridge Updates
Partners I
Partners III
Partners I
*8B>@94< ,6;6C:6:
CpenShl LnLerprlse 1.1 (!an 31)
ueveloper Console fully supporLed, bug xes & doc updaLes
CpenShl LnLerprlse 1.2 (~May)
lnLegraLe new carLrldge formaL, Web sockeLs, SSL, oLher upsLream
8ebase
CpenShl LnLerprlse 1.3 (~Aug)
8PLL carLrldge updaLes, Admln Console (1ech revlew), PA xes, bugs
CpenShl LnLerprlse 2.0 (~nov)
Admln Console, addluonal !8oss carLrldges (18u)
8ebase
/7>DEB5 266DFCBG
1op leaLures & LnhancemenLs ldenued by CSL rospecLs
CarLrldge LnhancemenLs
new CarLs (Mongou8, node.[s, more !8oss producLs)
updaLes CarLs (updaLe 8PLL runumes)
CusLom CarLrldges (easler Lo creaLe, documenLed)
AdmlnlsLrauon
usage MeLerlng
Admln Console
App/lnfrasLrucLure MonlLorlng lnLegrauon
Plgh AvallablllLy
PA roxy
Acuve-Acuve, Acuve-asslve
/7>DEB5 266DFCBG HB>45IJ
CLher leaLure 8equesLs
Larger node Slzes for 8are MeLal ueploymenLs
Mulu-level AuLhorlzauon (Croups/8oles) & Lnabllng 1eam uevelopmenL
neLwork lsolauon & Access for Cears
laaS/vlrL lnLegrauon for AuLomaLed rovlslonlng of nodes/8rokers
Chargeback lnLegrauon
uaLabase 1ler AuLoscallng
Cun lnLegrauon
Locallzauon
For more details and to provide feedback see:
http://etherpad.corp.redhat.com/OpenShiftEnterprise-ReleasePlanning
OpenShift Enterprise Pricing
Based on OpenShift Nodes for correlation to PaaS Capacity
Product and Price
SKU Description
USD EUR GBP
1 Yr 1 Yr 1 Yr
OpenShift Enterprise
MC12736 CpenShl LnLerprlse SLandard, 2 Core, 8 C8
$5,500 ! 4,400 3,793
MC12733 CpenShl LnLerprlse remlum, 2 Core, 8 C8
$8,000 ! 6,400 5,517
MC12738 CpenShl LnLerprlse SLandard, 4 Core, 32 C8
$13,500 ! 10,800 9,310
MC12737 CpenShl LnLerprlse remlum, 4 Core, 32 C8
$20,000 ! 16,000 13,793
MC12748 !8oss LnLerprlse Appllcauon lauorm for CpenShl LnLerprlse SLandard, 2 Core, 8 C8
$825 ! 660 569
MC12739 !8oss LnLerprlse Appllcauon lauorm for CpenShl LnLerprlse remlum, 2 Core, 8 C8
$1,200 ! 960 828
MC12749 !8oss LnLerprlse Appllcauon lauorm for CpenShl LnLerprlse SLandard, 4 Core, 32 C8
$1,650 ! 1,320 1,138
MC12740 !8oss LnLerprlse Appllcauon lauorm for CpenShl LnLerprlse remlum, 4 Core, 32 C8
$2,400 ! 1,920 1,655
MC12741 CpenShl LnLerprlse 8roker lnfrasLrucLure
$0 $0 $0
SL80419 30 uay unsupporLed CpenShl LnLerprlse, 2 Core, 8 C8 Lvaluauon
$0 $0 $0
SL80420 30 uay unsupporLed !8oss LnLerprlse Appllcauon lauorm for CpenShl LnLerprlse, 2 Core, 8 C8 Lvaluauon
$0 $0 $0
SL80421 CpenShl Lmployee Subscrlpuon $0 $0 $0
*Euro = .8 USD
*GBP = .68966 USD
Brokers are RHEL instances that act as a central controller for
a set of Nodes
Typical deployment will have a set of Nodes connected to a
Broker
All customers need at least 1 OpenShift Broker, so be sure
to add it to your quote!
We dont charge customers for Brokers ($0 SKU) and you
can add up to 20 max per customer
Customers may need more than 1 Broker if they:
Want to make the Broker tier redundant for HA reasons;


How Many OpenShift Brokers Do I Need?
Nodes are RHEL instances where user applications run
Nodes are multi-tenant, meaning multiple apps run on each
Nodes are split up into individual containers or Gears, that
are where application runtimes are deployed
Nodes have finite capacity, meaning there are limits to how
many total Gears a single node can run


How Many OpenShift Nodes Do I Need?
Nodes are sold in specific instance sizes (two sizes to start)
2 Core, 8 GB (Small Node) and 4 Core, 32 GB (Medium Node)
Nodes can be split up into Gears of different sizes
Small Gear (512 MB), Medium Gear (1 GB), Large Gear (2GB), etc.
Customer can define gear size & name associated to it
Number of Gears a Node can run can be estimated per the
table below
Note the maximum number Gears per Node is not guaranteed and can
vary based on application
How Many OpenShift Nodes Do I Need?
$>D6 09K6 0@C;; "6C7: HLMN =OJ =6D9E@ "6C7: HM "OJ (C7<6 "6C7: HN "OJ
2 Core, 8 C8 23 12 6
4 Core, 32 C8 100 30 23
To determine how many Nodes a customer will need, ask:
How much capacity (i.e. total # of applications) do you want
to be able to support in your PaaS?
One application consumes at least 1 Gear
One application may consume 3 or more Gears if auto-scaling is
enabled and/or if the DB (i.e. MySQL, Postgresql) runs in OpenShift
What types of applications do you want to run?
LAMP app runtimes can use Small Gears (512 MB)
JBoss EAP typically requires Medium or Large Gears (1 GB or 2 GB)
Do you want PaaS environments for Development, Testing,
Staging, Production, etc. or all of the above?


How Many OpenShift Nodes Do I Need?

También podría gustarte