Professional Documents
Culture Documents
U GARG
About me
7 Anju Garg
• Oracle Ace
Agenda
7 Anju Garg
ent In A Cluster
Resource Management I
7 Anju Garg
by the
• Created
user by user
• Internally
• Internally managed
managed server
server pool
pool
• All atributes are read-only
• Hosts Admininstrator-managed resources.
– Free Server Pool:
ORTANCEatribute • Built-in be edited
canpools by the
: Created user
automatcally with the insta
tains servers that – Generic assigned
are notServer Pool:to any other server pools.
Server Pool Ty
ement
r-created 11g
In Oracle Server Pool
SIZE and IMPORTANCEatribute can be edited
7 Anju Garg
• New Server Assignment
• Reallocaton of servers
erver pool
– User-created server pool
Illustraton-I
ement In Oracle 11g
New Server
Assignment
7 Anju Garg
Illustraton-I
New Server Assign
ement In Oracle 11g
Environment
• Consider a cluster having 9
• Three server pools - FrontO
and Line of Business
(LOB) pool have been defne
• Currently , all the server po
7 Anju Garg
Assignme
New Server Illustraton
ement In Oracle 11g • Since FrontOfce Pool has highest
below its
MIN_SIZE(=2) , frst two servers ar
its
MIN_SIZE(=2)
7 Anju Garg
Illustraton-I
• BackOfce pool which is next in IMPORTANCE (=
ement In Oracle 11g server so that it meets its MIN_SIZE(=1).
New Server
Assignment
(=3).
7 Anju Garg
Illustraton-I
11g
ement In Oracle • Front ofce pool is allocated next server that it mee
New so Server
Assignment
7 Anju Garg
BackOfce pool s
• Nest two servers are assigned toIllustraton-I
ement In Oracle 11g MAX_SIZE(=3).
New Server
Assignment
7 Anju Garg
Illustraton-I
• LOB pool which is next in IMPORTANCE(=2) is alloc
ement In Oracle 11g
that it meets its MAX_SIZE(=2). New Server
Assignment
7 Anju Garg
Illustraton-I
ement In Oracle 11g
New Server
Assignment
Recap
7 Anju Garg
1
place.
7 Anju Garg
ORTANT
–ine server
If athe server
server poolpoolpool
falls <= MIN_SIZE)
below
having its MAX_SIZEvalue,
least IMPORTANCE Server Assignm
a free server is
ement the 11g
Oracle•Free
If server(s)to leaveafected server
cluster, pool. reallocaton betw
Reallocaton of
east
fromInIMPORTANT Pool server
the pool
the exceeds aitsserver
MIN_SIZE
• server
Else (No
server topoolfreefalls below
servers)
defcient pool its MIN_SIZE, a server reallocaton will
ast even if it causes
poolIMPORTANT server donor
the pool < defcient
SIZE
7 Anju Garg
Illustraton-II
ement In Oracle 11g
Reallocaton Of
Servers
7 Anju Garg
• Environment
Illustraton-II
ement In Oracle 11g
Reallocaton
Servers
7 Anju Garg
Illustraton-I
ement In Oracle 11g
• Since a server is available in Free Pool,Reallocaton
that server is mo
Servers
7 Anju Garg
Illustraton-II
ement In Oracle 11g
Reallocaton
Servers
7 Anju Garg
Illustraton-II
ement In Oracle 11g
Reallocaton Of
• NOTHING - Since no
FrontOfce pool stll
has 2 servers (=MIN_
7 Anju Garg
Illustraton-II
Reallocaton Of Se
ement In Oracle 11g • If FrontOfce pool loses a
one server and
falls below its MIN_SIZEli
• A server should be source
• Which pool will become t
7 Anju Garg
Illustraton-II
• Both the BackOfce and LOB pools exceed their MIN_SI
ement In Oracle 11g
the least IMPORTANT Reallocaton
• Hence, a server is moved from LOB pool to FrontOfce
Servers
7 Anju Garg
Illustraton-II
ement In Oracle 11g
Reallocaton
Servers
7 Anju Garg
Illustraton-I
• What happens if any of FrontOfce or BackOfce Po
ement In Oracle 11gMIN_SIZE? Reallocaton
Servers
7 Anju Garg
pool so as to mee
• It can grab server(s) from BackOfceIllustraton-II
MIN_SIZEeven if it requires emptying the BackOfce p
In Oracle 11g
•ement
It can get–at If most one server
BackOfce to meet
pool falls below Reallocaton
MIN_SIZE(=1)
itsMIN_SIZE from
FrontOfce pool only if FrontOfce pool exceeds its MIN_SIZE
Servers
Recap
7 Anju Garg
eIfleast
serversIMPORTANTserver
leave the cluster pool exceeds
for any reason,
itsaMIN_SIZE
server reallocaton
place
ate as follows:
server to defcient pool
ement server
• IfInaOracle
(least 11g pool falls below
IMPORTANTserver pool
its <= Reallocaton
MAX_SIZEvalue, Of Ser
Illustraton-
MIN_SIZE) a free server, if
is moved
ate server onlyto the afected server
if defcient pool ispool.
more IMPORTANT
• If there are no free servers, then server from least IMPORTAN
move to the defcient pool only if it has fallen below its MIN_SI
7
7 Anju Garg
ces:• Fast
equired Since resource
resources failover:
server pools When
preferentally
do not asthe
share number
defned by of
resources, thenodes in the clus
policy.
n servers
be providedare reallocated
in a clusteronline
for based on defned
applicatons and policy to satsfy
ent In A Cluster Benefts
capacity requirements.
• Dynamic
lanning: Oncecapacity
resource assignment
requirements: Server
has been can expand or sh
Poolsdefned
ad,requirements
additonal capacity,
change.whenever available will be
y. • Guaranteed allocaton of resources : Critcal work will be allo
8
7 Anju Garg
servers
atributes.
appropriate atributes
. A burden to the administrator
. Error prone
9
7 Anju Garg
Management
• Server Categorizaton
• Extended Policy framework
In Oracle 12c
• Unifcaton
With Oracle clusterware
What ’s New In Ora
of policy based
12c, policy management
clusterbased with Q
cluster manage
three important ways.
1
7 Anju Garg
with it
. Various conditons
ated mechanism
• Enablestosupportng
allocate clusters with heterogeneous servers.
compute
vers are
dIn Oracle 12c further
on pre-defned organized into
server atributes.partcular categories based on
associated • Servers
with server diferentated
can bepools so that
Server Categoriz
based
now on their atributes w
server
of the
– Every servernode (Hub
has / Leaf),
a set of server confguraton atributes associat
govern placement
server atributes
deronatributes of servers in the
rather than the names ofserver pools.
and
• Workfow:
2
7 Anju Garg
3
7 Anju Garg
4
7 Anju Garg
ciate Server Pools with Server Categories so that Server pools are
d based on server atributes such as number of CPUs, CPU speed,
Oracle
ry
Inand etc.12crather
servers
category ofthan
are the names
diferent
not of the
capacites
available, servers servers.
. will be moved
Server Categoriz
ient
licatonsway can
ORTANTserver to manage
be poolenvironments
assigned
associated having
to the server
with pools
the sameso will run o
Apply Server
that theyCategor
rvers belonging to a server category.
Pools
erver pool loses a server, free servers of the associated category, i
5
7 Anju Garg
In Oracle 12c
Illustraton-III
Server
categorizaton
7 Anju Garg
7
7 Anju Garg
In Oracle 12c
Illustraton-III: Server Cat
8
7 Anju Garg
In Oracle 12c
Illustraton-III: Server Cat
9
7 Anju Garg
In Oracle 12c
Illustraton-III : Server Ca
0
• View user defned new categori
1
7 Anju Garg
In Oracle 12c
Illustraton-III : Server Cat
2
7 Anju Garg
In Oracle 12c
Illustraton-III : Server Cat
3
7 Anju Garg
as follows:
SmallpoolServer pool
Backuppool
Testpool Bigpool
In Oracle 12c
Illustraton-III : Server Cat
• Create server pools and
Smallassociate them with big / smal
Category
Small
Big
Big
4
7 Anju Garg
In Oracle 12c
Illustraton-III : Server Cat
5
Recap
7 Anju Garg
6
Why ?
7 Anju Garg
7
7 Anju Garg
8
7 Anju Garg
In Oracle 12c
Illustraton-IV
Extended Policy
Framework
Environment
7 Anju Garg
In Oracle 12c
• User defned server pools: Bigpool, Smallpool, Testpool a
Illustraton-IV: Extended Poli
Night
0
7 Anju Garg
In Oracle 12c
ERVER_POOL_NAMESpolicy set atribute to defne the scope
Illustraton-IV: Extended Poli
1
7 Anju Garg
In Oracle 12c
2
• Set Server Pool Atributes In Night P
Enhancements In Oracle 12c
Otnyathra 2017 Anju Garg
In Oracle 12c
4
7 Anju Garg
• View Night Policy
In Oracle 12c
5
7 Anju Garg
In Oracle 12c
6
7 Anju Garg
In Oracle 12c • Smallpool has been assigned both the small nodes (host
Illustraton-IV: Extended Poli
• Bigpool has been assigned three big nodes (host01,host0
• Testpool and Backuppool have not been assigned any ser
7
7 Anju Garg
In Oracle 12c
8
7 Anju Garg
9
7 Anju Garg
0
7 Anju Garg
In Oracle 12c • As per the modifed night policy, one big server (host02)
Illustraton-IV: Extended Poli
away from bigpool and has been assigned to backuppool
lef with only one server and backuppool has 2 servers as
1
Recap
7 Anju Garg
2
7 Anju Garg
7 Anju Garg
References
htps://docs.oracle.com/database/121/CWADD/pbmgmt.htm#CWADD91
htp://www.oracle.com/technetwork/database/optons/clustering/learn
deployments12c-twp-2338881.pdf
7 Anju Garg
5
7 Anju Garg
ANJU GARG
Email:anjugarg66@g
mail.com
Blog:http://oraclein
action.com