Академический Документы
Профессиональный Документы
Культура Документы
Agenda
Cloud Computing Primer
Amazon Web Services overview
Deploying Oracle on Amazon Elastic Compute
Cloud with attention to performance
Copyright 2010, Blue Gecko, Inc.
My definition
Cloud Computing: A set of methods for
delivering over networks managed computing
resources that can be incrementally provisioned
based on demand, remotely managed via a
uniform web API, and billed based on resource
usage to avoid capital costs.
Copyright 2010, Blue Gecko, Inc.
Cloud Benefits
Little or no up-front (capital) costs
Pay as you go: Pay for as few or as many resources as
you use
Deploy new environments in minutes
Better underlying physical infrastructure than you
could (potentially) afford/build yourself
! Geographic redundancy
! Replication
! Uptime SLAs
! Secure professional data centers
Copyright 2010, Blue Gecko, Inc.
Software as a Service
Web application supporting multiple private
enterprises or individuals
Replaces locally-managed enterprise software
Usually costs less
Google Apps: Email, calendar, docs
Salesforce CRM
Copyright 2010, Blue Gecko, Inc.
Platform as a Service
Development and run-time environment supporting
multiple private applications
Applications are developed by the customer on the
PaaS platform
Many have database services and caching
Force.com (proprietary development environment)
Google Apps Engine (open dev environment)
Copyright 2010, Blue Gecko, Inc.
Infrastructure as a Service
Virtual hosts, storage and other infrastructure
supporting multiple private environments
Bring/write/manage your own software
Run anything you want (within the ToS)
Scale/pay as you go
Amazon Web Services (AWS) is the global leader and
stealth behemoth
! Many iPhone, Facebook app backends run on AWS
! Many websites and digital media backed by AWS
! You can run a variety of Oracle software
Copyright 2010, Blue Gecko, Inc.
US
East
EC2: the Elastic Compute Cloud
US West
EU West
More
Soon
Copyright 2010, Blue Gecko, Inc.
EC2s value to IT
Scaling, automation, management features
Completely flexible run anything
Common use cases
! Development / testing
! Disaster recovery site
! Student sandboxes 64-bit OEL for every student
! Prototyping / proof of concept
! Production
Pay as you go
Terminate host to stop paying
Copyright 2010, Blue Gecko, Inc.
Caveat emptor
I/O Performance is limited
! Fine for 80% of deployments at peak
! Requires testing
You need a reliable Internet connection
Not always cheaper than self-hosted
Oracle supportability question
Copyright 2010, Blue Gecko, Inc.
Management
All AWS services are controlled by Web API calls
HTTP SOAP requests, XML responses
Requires a signature with key data
Therefore tools are required
Two approaches:
! Manually manage services using admin tools
! Write software to call the API using libraries
! Amazon supplies Java, Ruby & Perl libraries
Depends on what you are doing
Copyright 2010, Blue Gecko, Inc.
I/O Strategy
Persistent data (databases) belong on EBS
EBS is accessed via the EC2 hosts network interface
Striping across volumes is #1 optimization
! ASM, LSR, LVM, etc.
Some recent ORION results:
! 3500 peak 8k reads / second
! 10x 1G EBS volumes with
simulated striping
! m1.large instance
Compare I/O capacity to DB requirements
! ORION to test EBS
! DBA_HIST_IOSTAT_FILETYPE for DB peak
0
500
1000
1500
2000
2500
3000
3500
4000
4500
4
0
5
0
6
0
7
0
8
0
9
0
1
0
0
1
1
0
1
2
0
1
3
0
1
4
0
1
5
0
1
6
0
1
7
0
1
8
0
1
9
0
2
0
0
Copyright 2010, Blue Gecko, Inc.
Configuring Storage
Demo: Create and attach EBS Volumes (on EC2 tools machine)
! #$%&$'#()#&*+,-.# &&/01# % &&(*(0,(20,0)3&1+4# -/&#(/)&52
! #$%&$'#()#&*+,-.# &&/01# % &&(*(0,(20,0)3&1+4# -/&#(/)&52
! #$%&$'#()#&*+,-.# &&/01# % &&(*(0,(20,0)3&1+4# -/&#(/)&52
! #$%&$'#()#&*+,-.# &&/01# % &&(*(0,(20,0)3&1+4# -/&#(/)&52
! #$%&$'#()#&*+,-.# &&/01# % &&(*(0,(20,0)3&1+4# -/&#(/)&52
! Take note of volume names
! #$%&())($6&*+,-.# *+,&%7$$889: &&04/)(4$# 0&;(7<=>2% &&;#*0$# ?;#*?/;:
! #$%&())($6&*+,-.# *+,&<($$88@< &&04/)(4$# 0&;(7<=>2% &&;#*0$# ?;#*?/;A
! #$%&())($6&*+,-.# *+,&8$$$887@ &&04/)(4$# 0&;(7<=>2% &&;#*0$# ?;#*?/;6
! #$%&())($6&*+,-.# *+,&88$$887B &&04/)(4$# 0&;(7<=>2% &&;#*0$# ?;#*?/;0
! #$%&())($6&*+,-.# *+,&8%$$8872 &&04/)(4$# 0&;(7<=>2% &&;#*0$# ?;#*?/;C
Demo: Start ASM and configure for EBS (on EC2 instance)
D ,+$(,$+4:0A (;;
D #$6+ EFFGE H /:;0/I &J ?;#*?/;:K +'($,#(/. $'#()#;0/I L85 ?;#*?/;:5
D #$6+ EFFGE H /:;0/I &J ?;#*?/;AK +'($,#(/. $'#()#;0/I L8% ?;#*?/;A5
D #$6+ EFFGE H /:;0/I &J ?;#*?/;6K +'($,#(/. $'#()#;0/I L8< ?;#*?/;65
D #$6+ EFFGE H /:;0/I &J ?;#*?/;0K +'($,#(/. $'#()#;0/I L89 ?;#*?/;05
D #$6+ EFFGE H /:;0/I &J ?;#*?/;CK +'($,#(/. $'#()#;0/I L8@ ?;#*?/;C5
D /- & +'($,#
M N +'(#4*
OPQRGSTUOVS W X?6+.#?+'($,#Y Z )/)<%
M ;2$( &/0,#4) &$+4:0A-'#(/. &;0/I,0/) OPRG[L85FOPRG[L8%FOPRG[L8<FOPRG[L89 \
&;0/IA'+-]4(.# ;()( &'#;-4;(4$3 #^)#'4(, &'#$+*#'3;0/I,0/) OPRG[L8@ \
&'#$+*#'3A'+-]4(.# '#$+ &'#$+*#'3A'+-]'#;-4;(4$3 #^)#'4(,
Copyright 2010, Blue Gecko, Inc.
O/S Persistence
Start with the original AMI each time
! Re-bundle every time you make a change
! /etc/oratab, ORACLE_HOME, spfile all revert
! Store them on an EBS volume filesystem
! Create symbolic links each time you start up
Boot from EBS
! AMI initially copied to an EBS volume filesystem
! Thereafter, snapshots to S3 on termination
! Snapshot is basis for EBS volume on restart
! O/S and root disk evolves over lifetime of server
Copyright 2010, Blue Gecko, Inc.
Backups
Oracle Secure Backup (OSB) Cloud Module
! RMAN Media Management Library (MML)
! Compelling alternative to tape vaulting
! Instant off-site
! Always online, geographically replicated
Demo: Back up a traditionally-hosted DB to S3
789:; '() <-==3$-,# $>-))#= +?- ,64# +@,A
@-$5(4 *)$'#.#),-= =#B#= C
-+ $3.4'#++#D @-$5(4+#,
D-,-@-+# 4=(+ -'$>*B#=32
D#=#,# *)4(,AE
789:; =*+, @-$5(4 3F D-,-@-+# @6 F*=#A
Copyright 2010, Blue Gecko, Inc.
Summary
AWS is a viable Oracle platform for many businesses,
organizations and use cases
Like all platforms, AWS requires performance testing for
the load and use profile intended
Optimizations are possible on AWS to maximize Oracle
performance
For more Oracle on AWS information:
! OTN Cloud Center
! http://www.oracle.com/technology/tech/cloud
! AWS Oracle Page
! http://aws.amazon.com/solutions/featured-partners/oracle
Copyright 2010, Blue Gecko, Inc.
Q & A