Escolar Documentos
Profissional Documentos
Cultura Documentos
ANJU GARG
Otnyathra 2017 Anju Garg
About me
Oracle Ace
More than 14 years of experience in IT Industry
Oracle Certified Specialist and Expert
Independent Corporate Trainer (Oracle DBA), Author, Speaker
Member - AIOUG, IOUG, UKOUG
Oracle blog : http://oracleinaction.com/
Email : anjugarg66@gmail.com
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 9
Server Pool Types
Built-in pools : Created automatically with the installation of the cluster
Generic Server Pool:
Internally managed server pool
All attributes are read-only
Hosts Admininstrator-managed resources.
Free Server Pool:
Internally managed server pool
IMPORTANCE attribute can be edited by the user
Contains servers that are not assigned to any other server pools.
User-created Server Pool
Created by user
MIN_SIZE, MAX_SIZE and IMPORTANCE attribute can be edited
by the user
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 10
Server Assignment
New Server Assignment
Reallocation of servers
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 11
Server Assignment
New Server Assignment
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g
Illustration-I
New Server Assignment
Environment
Consider a cluster having 9 servers.
Three server pools - FrontOffice Pool, BackOffice pool and Line of Business
(LOB) pool have been defined as shown.
Currently , all the server pools are empty.
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 14
Illustration-I
New Server Assignment
Since FrontOffice Pool has highest IMPORTANCE (=4), and it is below its
MIN_SIZE (=2) , first two servers are assigned to it so that it meets its
MIN_SIZE (=2)
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 15
Illustration-I
New Server Assignment
BackOffice pool which is next in IMPORTANCE (=3) is allocated next
server so that it meets its MIN_SIZE (=1).
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 16
Illustration-I
New Server Assignment
Front office pool is allocated next server so that it meets its MAX_SIZE
(=3).
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 17
Illustration-I
New Server Assignment
Nest two servers are assigned to BackOffice pool so that it meets its
MAX_SIZE (=3).
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 18
Illustration-I
New Server Assignment
LOB pool which is next in IMPORTANCE(=2) is allocated two servers so
that it meets its MAX_SIZE (=2).
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 19
Illustration-I
New Server Assignment
One left over server goes to Free Pool
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 20
Illustration-I
New Server Assignment
Recap
As servers join the cluster, they are assigned to server pools in the
following order:
Generic server pool
User-created server pool
Fill all server pools in order of importance until they meet their
minimum (MIN_SIZE).
Fill all server pools in order of importance until they meet their
maximum (MAX_SIZE).
Free server pool
21
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g
Server Assignment
Reallocation of servers
If server(s) leave the cluster, a server reallocation between pools may take
place.
If there are servers in the Free Pool
If a server pool falls below its MAX_SIZE value, a free server is moved
from the Free Pool to the affected server pool.
Else (No free servers)
Only if a server pool falls below its MIN_SIZE, a server reallocation will
take place as follows:
Determine the server pool having least IMPORTANCE
If the least IMPORTANT server pool exceeds its MIN_SIZE
Move server to deficient pool
Else (least IMPORTANT server pool <= MIN_SIZE)
If IMPORTANCE of least IMPORTANT server pool < deficient
pool
Move server to deficient pool even if it causes the donor
pool to fall below its MIN_SIZE
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 22
Illustration-II
Reallocation Of Servers
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g
Illustration-II
Reallocation Of Servers
Environment
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 24
Illustration-II
Reallocation Of Servers
One server leaves FrontOffice Pool so that the pool falls below its
MAX_SIZE value (=3).
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 25
Illustration-II
Reallocation Of Servers
Since a server is available in Free Pool, that server is moved to FrontOffice
Pool
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 26
Illustration-II
Reallocation Of Servers
FrontOffice Pool meets its MAX_SIZE (=3)
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 27
Illustration-II
Reallocation Of Servers
What will happen if front office pool loses another server?
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 28
Illustration-II
Reallocation Of Servers
NOTHING - Since no free servers are available and FrontOffice pool still
has 2 servers (=MIN_SIZE).
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 29
Illustration-II
Reallocation Of Servers
What will happen if FrontOffice pool loses another server?
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 30
Illustration-II
Reallocation Of Servers
If FrontOffice pool loses another server, it is left with only one server and
falls below its MIN_SIZE limit of 2 servers.
A server should be sourced from one of the other pools.
Which pool will become the donor in this case?
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 31
Illustration-II
Reallocation Of Servers
Both the BackOffice and LOB pools exceed their MIN_SIZE but LOB pool is
the least IMPORTANT
Hence, a server is moved from LOB pool to FrontOffice pool
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 32
Illustration-II
Reallocation Of Servers
FrontOffice pool has 2 servers now (=MIN_SIZE).
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 33
Illustration-II
Reallocation Of Servers
What happens if any of FrontOffice or BackOffice Pools fall below their
MIN_SIZE?
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 34
Illustration-II
Reallocation Of Servers
If any of FrontOffice or BackOffice Pools fall below their MIN_SIZE, they
will get the only remaining server in the LOB pool since LOB pool
Exceeds its MIN_SIZE
Has Lowest IMPORTANCE
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 35
Illustration-II
Reallocation Of Servers
What happens if LOB pool is empty,
If FrontOffice pool falls below MIN_SIZE
It can grab server(s) from BackOffice pool so as to meet its
MIN_SIZE even if it requires emptying the BackOffice pool.
If BackOffice pool falls below MIN_SIZE
It can get at most one server to meet its MIN_SIZE (=1) from
FrontOffice pool only if FrontOffice pool exceeds its MIN_SIZE
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g 36
Illustration-II
Reallocation Of Servers
Recap
If servers leave the cluster for any reason, a server reallocation may take
place as follows:
If a server pool falls below its MAX_SIZE value, a free server, if available,
is moved to the affected server pool.
If there are no free servers, then server from least IMPORTANT pool may
move to the deficient pool only if it has fallen below its MIN_SIZE value.
If the least IMPORTANT server pool exceeds its MIN_SIZE
Donate server to deficient pool
Else (least IMPORTANT server pool <= MIN_SIZE)
Donate server only if deficient pool is more IMPORTANT
37
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g
Benefits
Fast resource failover: When the number of nodes in the cluster changes,
servers are reallocated online based on defined policy to satisfy workload
capacity requirements.
Dynamic capacity assignment : Server Pools can expand or shrink as
requirements change.
Guaranteed allocation of resources : Critical work will be allocated
required resources preferentially as defined by the policy.
Isolation of resources: Since server pools do not share resources,
dedicated servers can be provided in a cluster for applications and
databases
Useful for future planning: Once resource requirements has been defined
for expected workload, additional capacity, whenever available will be
used instantaneously.
38
Otnyathra 2017 Anju Garg Resource Management In A Cluster
Limitations in Oracle 11g
All servers were assumed to be homogeneous with regard to their CPU
count, physical memory and other characteristics.
Placement of servers in server pools could not be governed by server
attributes.
Sub-optimal performance of applications executing on inadequate
servers
Administrator needed to manually map workload to servers having
appropriate attributes
A burden to the administrator
Error prone
Does not consider the fact that server requirements of applications may
be different at different times of the day, week, or month.
39
Otnyathra 2017 Anju Garg Policy Based Cluster Management In Oracle 11g
Enhancements in Oracle 12c
Associate Server Pools with Server Categories so that Server pools are
defined based on server attributes such as number of CPUs, CPU speed,
Memory etc. rather than the names of the servers.
Applications can be assigned to the server pools so that they will run on
the servers belonging to a server category.
If a server pool loses a server, free servers of the associated category, if
available, will be moved to the server pool.
If free servers of desired category are not available, servers will be moved
from another lesser IMPORTANT server pool associated with the same
category .
Provides an automated and efficient way to manage environments having
varying workload requirements and servers of different capacities .
76
Otnyathra 2017 Anju Garg