<Insert Picture Here> Cloud Infrastructure – Deploying an elastic and heterogeneous application with IBM system z running linux. Paul Bramy – ORACLE Corporation – Oracle Integrated Solutions Didier Wojciechowski – ORACLE Corporation – Oracle Integrated Solutions
37
Embed
Cloud Infrastructure – Deploying an elastic and ... · Diagnostic, Performance) and Application Te sting (ATS, RAT) IaaS Storage PaaS SaaS Virtualization layers IBM Power IBM System
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
<Insert Picture Here>
Cloud Infrastructure – Deploying an elastic and heterogeneous application with IBM system z running linux.
Paul Bramy – ORACLE Corporation – Oracle Integrated Solutions
• Brief introduction to Cloud – Main lessons to leverage Oracle Solutions on IBM System z running
Linux
• Main Oracle Database 11gR2 foundations for Cloud deployments
• Oracle Clusterware– SCAN– Multiple network
• Server pool management• Oracle Rac One Node
• Deploying an elastic and heterogeneous application– From Application to infrastructure
– Weblogic/Coherence/Java application– Oracle GRID foundations– Oracle Database features
3
NIST Definition of Cloud Computing
Cloud computing is a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction.
This cloud model promotes availability and is composed of:
Source: NIST Definition of Cloud Computing v15
3 Service Models• SaaS• PaaS• IaaS
4 Deployment Models• Public Cloud• Private Cloud• Community Cloud• Hybrid Cloud
•A major part of Oracle’s Private Cloud•Integrated with Oracle Automatic Storage Management (ASM)•Foundation for the Oracle ASM Cluster File System (ACFS)•Foundation for Oracle Real Application Clusters (RAC)•An infrastructure for the management of all kind of applications
•Single Client Access Name•Multiple Network support•Server pool strategy
Storage (CloudFS)ASM
•Simplifies and automates storage management•Integrated cluster and single node framework•Dynamic Re-balancing•Flexible striping and mirroring•Optimal performance by default•Best availability and scalability•Manages ALL DB files and OCR/Voting
ACFS *General purpose scalable file system
Journaling, extent based, Single node and cluster
POSIX, X/OPEN file system solution
Windows file system
Accessible through NAS protocols (NFS, CIFS)
Leverages ASM technology for volume mgt
Integrated with Oracle Clusterware for cluster support
Integrated with Oracle system mgt tools
Oracle Cloud foundationswith IBM infrastructure including IBM System z running linux
Security•Advanced Security Option•Label Security•Datrabase Vault•Audit Vault*• Data Masking•Total Recall
HA, DR and Active-Active ReplicationReal Application Clusters•24/7 availability—Provide continuous uptime for database applications
Highest Availability
On-demand flexible scalability
Lower computing costs
World record performance
RaC One Nodeunlocks the benefits of the database cloud for single instance databasesAutomated failure discovery
Immediate failover
Online application of critical/security patches
Online OS upgrades
Online storage upgrades
Online server replacement
Active DataGuardShip from memory
SYNC or ASYNC
Simple one way replication
Standby open read-only
Zero I/O overhead, near-zero primary performance impact
Standby database is exact physical replica
No data type or other restrictions
Integrated with Oracle kernel
Golden Gate *Read and ship from redo logs
ASYNC only
Advanced, multimaster replication*Target open read-write
I/O overhead and capture processing on primary
Replica is logical copy maintained using SQL
Data type and other restrictions
External to Oracle Database
Oracle Application GRIDOracle Application GRID
WebLogic Server•JMS performance•Clustering, RAC integration•Rolling cluster upgrades•Overload protection•Server, service migration•WAN / MAN clusters for DR
Coherence•Dynamic scale-out of Web apps•Unparalleled performance, availability•Protect against backend failure
Tuxedo•Scale-out•InstrumentationDeploys to commodity H/W predictable behavior
Jrockit *•Code optimization•Diagnostics and tuning•Predictable performance
11
<Insert Picture Here>
Agenda
• Brief introduction to Cloud – Main lessons to leverage Oracle Solutions on IBM System z running
Linux
• Main Oracle Database 11gR2 foundation for Cloud deployments
• Oracle Clusterware– SCAN– Multiple network
• Server pool management• Oracle Rac One Node
• Deploying an elastic and heterogeneous application– From Application to infrastructure
– Weblogic/Coherence/Java application– Oracle GRID foundations– Oracle Database features
12
• Used by clients to connect to any database in the cluster
• Removes the requirement to change the client connection if cluster changes
• Load balances across the instances providing a service
• Provides failover between “moved instances”
ClusterSCANname
Single Client Access Name (SCAN) The New Database Cluster Alias
OS / Linux
( n VCPU)
z/VM z/VM z/OS
Task
Hypersocketnetwork
External vswitchnetwork
Oracle ASM
OS / Linux
( n VCPU)
Oracle ASM
OS / Linux
( n VCPU)
OS / Linux
( n VCPU) Oracle Clusterware
13
Single Client Access Name (SCAN) Network Requirements
Two options:1. Define the SCAN in your corporate DNS (Domain Name Service)
2. Use the Grid Naming Service (GNS) and the SCAN will be created during cluster configuration
Note: For a test environment, you can install with SCAN resolving to one IP in /etc/hosts if no DNS
• Load balancing using SCAN is still based on these parameters: – local_listener– remote_listener
• Using an Oracle Database 11g Release 2, the following configuration will be the default for a newly, DBCA-created DB:
• Note the notation of the remote_listener for SCAN• More information: “Oracle Real Application Clusters 11g Release 2
Overview of SCAN” on http://www.oracle.com/goto/rac
Single Client Access Name (SCAN) How to parameterize load balancing
17
Single Client Access Name (SCAN) Oracle versions impact
Oracle client version Oracle DB version Comments
Oracle Database 11g Release 2
Oracle Database 11g Release 2 No change required
Oracle Database 11g Release 2
Pre-Oracle Database 11g Release 2
Add the SCAN VIPs as hosts to the REMOTE_LISTENER parameter.
Pre-Oracle Database 11g Release 2
Oracle Database 11g Release 2
Change the client TNSNAMES.orato
include the SCAN VIPs
Pre-Oracle Database 11g Release 2
Pre-Oracle Database 11g Release 2
No change required, since node VIPs can be used, but use of
SCAN is recommended.
18
• “Multiple Subnet Support” for the cluster was introduced with Oracle Clusterware 11g Release 2 • Creation of the respective VIP-resource is required first• Further application VIPs need to be created to support the applications ( Parallel access from z/OS and external
Application tiers )
Multiple Subnet Support in the Cluster
Linux guest VIP1
142.122.33.1
Linux guest VIP2
142.122.33.2
Linux guest VIP3
142.122.33.3
Linux guest VIP4
142.122.33.4Green network:
142.122.33.xvswitch
External network
Blue network:
192.168.2.x
Hypersocketnetwork
App VIP1
192.168.2.10
App VIP2
192.168.2.11
OS / Linux
( n VCPU)
z/VM z/VM z/OS
Task
External vswitchnetwork
Oracle ASM
OS / Linux
( n VCPU)
Oracle ASM
OS / Linux
( n VCPU)
OS / Linux
( n VCPU) Oracle Clusterware
19
Multiple Subnet Support in the Cluster
Node VIP1
142.122.33.1
Node VIP2
142.122.33.2
Node VIP3
142.122.33.3
Node VIP4
142.122.33.4Green network:
142.122.33.xora.net1.network
Blue network:
192.168.2.x
App VIP1
192.168.2.10
App VIP2
192.168.2.11
• In Oracle Clusterware 11g Release 2 the procedure was:
• The “network resource” = ora.net#.network was introduced with 11.2.0.1– It monitors the interface it is assigned to (e.g. /eth0)– Each network resource represents 1 subnet in the cluster– SCAN, listeners, VIPs (node and App VIPs) depend on the network resource.
21
Multiple Subnet Support in the Cluster
Node VIP1
142.122.33.1
Node VIP2
142.122.33.2
Node VIP3
142.122.33.3
Node VIP4
142.122.33.4
Green network:
142.122.33.xora.net1.network
Blue network:
192.168.2.x
App VIP1
192.168.2.10
App VIP2
192.168.2.11
• In 11.2.0.1 the network resource was implicitly managed.• In 11.2.0.2 the network resource is explicitly managed using SRVCTL
• [GRID]> srvctl add network -hAdds a network configuration to the Oracle Clusterware.
• [GRID]> srvctl modify network -hModifies a network configuration in the Oracle Clusterware.
• [GRID]> srvctl config network -hDisplays the configuration information for the networks
registered in the Oracle Clusterware.
22
Two Management Styles for Oracle RAC
• Administrator Managed– Specifically define where the database should run with a list of
servers– Define where services should run within the database
• Policy Managed– Define resource requirements of workload – Enough instances are started to support workload requirements– Goal: To remove hard coding of a service to a specific instance
or node
23
Server Pool• Logical division of the cluster into pools of servers • Applications (including databases) run in one or more
server pools• Managed by crsctl (applications), srvctl (Oracle) • Defined by 3 attributes (min, max, importance) or a
defined list of nodes– Min- minimum number of servers (default 0)– Max – maximum number of servers (default 0 or -1) – Importance – 0 (least important) to 1000
srvctl modify serverpool –g <name> –u <max>
24
Server Pool Example – Instance View
shared storage
External network – vswitch 1
clusterInterconnectHipersocketLinux Guest Linux Guest Linux Guest Linux Guest
Redo / Archive logs all instances
Database / Control files
Listener Listenerinstance 1 instance 2
Database 1
Min x Max x Imp x
OCR and Voting Disks
ASM Disk Groups
VIP1 VIP2 VIP4VIP3
Scan_LSNR Scan_LSNR Scan_LSNRGNS
Oracle Clusterware
ASM
LPAR - z/VM
Listener Listener
instance 1 instance 2
Min x Max x Imp 4
Database 2
25
Cluster Management via Server Pools
z/VM
Linux Guest
z/OS
shared storage
z/VM
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
Free
OCR and Voting DisksASM Disk Groups
Oracle Clusterware
ASM
ERP Financial
Min 3 Max 3 Imp 10
Siebel
Min 2 Max 3 Imp 3
OBI
Min 1 Max 2 Imp 1
LPAR 1 LPAR 2 LPAR 3
z/VM
Linux Guest
Linux Guest
Linux Guest
26
Cluster Management via Server Pools
z/VM
Linux Guest
z/OS
shared storage
z/VM
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
FreeERP Financial
Min 3 Max 3 Imp 10
Siebel
Min 2 Max 3 Imp 3
OBI
Min 1 Max 2 Imp 1
LPAR 1 LPAR 2 LPAR 3
z/VM
Linux Guest
Linux Guest
Linux Guest
Back Office
OCR and Voting DisksASM Disk Groups
Oracle Clusterware
ASM
27
Cluster Management via Server Pools
z/VM
Linux Guest
z/OS
shared storage
z/VM
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
FreeERP Financial
Min 3 Max 3 Imp 10
Siebel
Min 1 Max 3 Imp 4
OBI
Min 1 Max 2 Imp 2
LPAR 1 LPAR 2 LPAR 3
z/VM
Linux Guest
Linux Guest
Linux Guest
Back Office
OCR and Voting DisksASM Disk Groups
Oracle Clusterware
ASM
28
RAC One Node Infrastructure overview
z/VM
Linux Guest
z/OS
shared storage
z/VM
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
LPAR 1 LPAR 2 LPAR 3
z/VM
OCR and Voting DisksASM Disk Groups
Linux Guest
Linux Guest
Singl Inst 1 Singl Inst 2 Singl Inst 3 Singl Inst 5Singl Inst 4
• Multiple instances in a linuxguest
Oracle Clusterware
• Single Cluster foundation
ASM
• Shared Disk layer ( ASM )
• Multiple LPAR, linuxguests
29
RAC One Node deploymentInstance Caging
z/VM
Linux Guest
z/OS
shared storage
z/VM
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
LPAR 1 LPAR 2 LPAR 3
z/VM
OCR and Voting DisksASM Disk Groups
Linux Guest
Linux Guest
Singl Inst 1 Singl Inst 2 Singl Inst 3 Singl Inst 5Singl Inst 4
Oracle Clusterware
ASM
Linux guest 5 Virtual CPU
Singl Inst 1Singl Inst 2
Limit : Up to 4 CPU
Limit : Up to 2 CPU
30
RAC One Node deploymentOmotion
z/VM
Linux Guest
z/OS
shared storage
z/VM
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
LPAR 1 LPAR 2 LPAR 3
z/VM
OCR and Voting DisksASM Disk Groups
Linux Guest
Linux Guest
Singl Inst 1 Singl Inst 3 Singl Inst 5Singl Inst 4
Oracle Clusterware
ASM
Singl Inst 2Singl Inst 2
• Patch Oracle binaries, modify Linux parameters, etc..
31
RAC One Node deploymentOmotion
z/VM
Linux Guest
z/OS
shared storage
z/VM
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
# IFLsMemory
# OSA Card
# FC Cards
LPAR 1 LPAR 2 LPAR 3
z/VM
OCR and Voting DisksASM Disk Groups
Linux Guest
Linux Guest
Singl Inst 1 Singl Inst 3 Singl Inst 5Singl Inst 4
Oracle Clusterware
ASM
Singl Inst 2Singl Inst 2
• Restart Instance Service
32
When To Use What?
• Oracle Enterprise Edition / Oracle ClusterWare protection– Standard HA requirements—tolerate unplanned and planned outages– Fits wiith a single instance strategy– Avaialble with Oracle 10gR2 database– Failover protection – minimal donwtime
• Oracle RAC One Node – Faster Failover + Omotion– Fits within a single server– Online scale-out to multi-node RAC
• Oracle RAC – Business critical applications—almost zero downtime– Performance intensive applications requiring horizontal scalability
33
<Insert Picture Here>
Agenda
• Brief introduction to Cloud – Main lessons to leverage Oracle Solutions on IBM System z running
Linux
• Main Oracle Database 11gR2 foundations for Cloud deployments
• Oracle Clusterware– SCAN– Multiple network
• Server pool management• Oracle Rac One Node
• Deploying an elastic and heterogeneous application– From Application to infrastructure
– Weblogic/Coherence/Java application– Oracle GRID foundations– Oracle Database features