Clustering
Clustering
Types of Clustering
Objectives
At the end of this module the student will
understand the following tasks and
concepts.
What clustering is and why you would
want it
Clustering options
Differences between various types of
clustering; advantages and
disadvantages
Factors to consider when choosing a
cluster type
What is a cluster?
My definition
Multiple systems performing a single
function
Black box
Why Cluster?
Performance
Availability
Recoverability
Features
Speedup
Faster response times
Transactions finish faster
Scaleup
More work done
More capacity, more concurrent
transactions
Scalability
Single Node Scaling
Users
Scales to
multiple CPUs
Doesn’t scale
beyond one
node
Multiple
single points Server
of failure
Database
Database
Cluster Definitions
Shared Nothing (Federated)
Replicated Site
Shared Disk
Failover
Active/Passive
Active/Active
Shared Everything
Shared Nothing Cluster
Only one CPU is connected to a disk
May have shared memory
MPP Systems are Shared Nothing
Other vendors have “Shared
Nothing” clusters
Federated (Shared
Nothing) Cluster
Distributed database
(separate database
on each machine)
Data is spread across
nodes; each machine
has part of the data
Function is spread 1. Got it?
across nodes
Two-Phase Commit Good!
3.
Server Server
2.
Got it!
Database Database
Replicated System
Data replicated at
the server
(network) level or
at the storage
(SAN) level
Passive Node
Multiple copies of Active Node
the same
database Server level
Most common Server
Replication
or
Server
Users
Fault tolerant
systems;
highly
available
Basic failover
clusters don’t Server Server
scale beyond
two nodes
Database
Database
Active/Passive vs.
Active/Active
Both are failover only
Active/Passive
One node is active
The other is passive until failover
Active/Active
Still uses active/passive technology
2 separate databases
One is active on node A and passive on node
B
The second database is active on node B and
passive on node A.
Separate applications and user connections to
each of the different databases
Active/Passive
Node A Node B
Node A is active
Node B is passive
until/unless Node A
fails
Only one Oracle license
is required
Active/Passive
X
Node A Node B
If Node A fails …
Active/Passive
X
Node A Node B
Node B becomes
active
Node A is dead
(definitely passive!)
until repaired and
then “failed back”
if necessary.
Active/Active
2 separate databases.
Both nodes are not
accessing the same
data at the same time.
X
User Group A User Group D User Group G
X
User Group A User Group D User Group G
X
User Group A User Group D User Group G User Group J