RAC Load Balancing
There are two types of connection load-balancing:
server-side load balancing and client-side load balancing.
* Client-side balancing happens at client side where load balancing is done using listener.
* In case of server-side load balancing listener uses a load-balancing advisory to redirect connections to the instance providing the best service.
Its act in following condition:
* When Node Status Changes: ONS enables applications to receive notifications when the status of a node changes, such as when a node joins or leaves the cluster.
* Service Availability: ONS allows applications to subscribe to service availability events, so they can receive notifications when a service becomes available or unavailable.
* Database Failover: In the event of a database instance failure, Oracle RAC automatically performs a failover to another available instance.
* ONS plays a vital role in facilitating this failover process by notifying applications about the instance failure and the new primary instance to which they should connect.
The load balancing advisory requires the use of services and Oracle Net connection load balancing.
To enable it, on the server: set a goal (service_time or throughput, and set CLB_GOAL=SHORT ) on your service.
For client, you must be using the connection pool.
For JDBC, enable the datasource parameter FastConnectionFailoverEnabled.
For ODP.NET enable the datasource parameter Load Balancing=true.
Post a Comment