Professional Documents
Culture Documents
Oracle Real Application Clusters (RAC) : RAC Internals, Cache Fusion and Performance Tuning
Oracle Real Application Clusters (RAC) : RAC Internals, Cache Fusion and Performance Tuning
Disclaimer
This views/content in this document are those of the author and do not necessarily reflect that of Oracle Corporation and/or its affiliates/subsidiaries. The material in this document is for informational purposes only and is published with no guarantee or warranty, express or implied.
Agenda
Node & Clusterware stack startup sequence Heartbeat mechanism Voting disk functionality Split-brain resolution Node reboot causes
inittab
Clusterware stack 2 1
OS startup
Node boots up
init.evmd
evmd.bin
Publish the events upon detecting Responsible to execute callouts
Voting disk
init.cssd
ocssd.bin
init.crsd
crsd.bin
OCR
oclsmon.bin oprocd.bin
Provides cluster group membership Monitor nodes in the cluster via heartbeat mechanism
Manage and monitor CRS resources Updates OCR when srvctl is used
inittab init.ohasd
OS startup
Node boots up
oraagent.bin
MDNSD GIPCD GPNPD EVMD ASM
orarootagent.bin
CSSD Monitor CRSD CTSSD Diskmon ACFS Drivers
cssdagent
OCSSD
oraagent
ONS ASM Instance DB Instance Listener SCAN Listener
orarootagent
GSD VIP SCAN VIP
Node1
Node2
cs s
All 3 nodes can see each other ALL IS WELL!
Node3
cs s
cs s
Node1
cs s
Node2
cs s
Node3
cs s
Node 1 & 2 can see each other but both cant see 3 ? lets evict Node3
Voting Disk
Nanda (2009)
CPU and I/O (not Interconnect) are necessary for RAC Performance
Lawson (2010)
Bottom-Up Storage Spindles, Controllers, Paths OS I/O times, queues Network latency Memory CPU (each core) Goal: Balance & Maximize Utilization
Indexes Sequences Hot rows or small tables MSSM gc Wait Events High Interconnect Utilization
Main Principle: parallelize (avoid serialization on any data) If it doesn't scale on SMP then it won't scale on RAC
No Range Scans
Seq NoOrder+Cache ASSM (or FreeL Gr) Data & Index Partitioning App Partitioning
Summary
To summarize, Oracle RAC is proven, robust and stable and is used by corporations, organizations & governments across the globe to achieve High Availability, Elasticity & Scalability by providing a lower-cost and higher ROI alternative to Mainframe-like SMP (Symmetric Multi-Processing) models of computing. Learn more about Oracle RAC at Oracle's RAC homepage.
http://www.oracle.com/technology/products/database/clustering/index.html