More Clarity
Tesla, January 21, 2017 - 5:33 am UTC
1. Is the count of 3 for scan the upper limit? Can't I have 5 scan listeners?
2. scan does not do run time load balancing but it does connection time load balancing in terms of diverting connections to the least loaded node? Correct?
3. You mean to say in a two node RAC, it is totally fine to have one node having 1 scan and the other node having 4 scan's running.? But when do you actually use the srvctl relocate scan?
January 22, 2017 - 3:01 am UTC
1. Is the count of 3 for scan the upper limit? Can't I have 5 scan listeners?
3 is the *lower* limit.
2. scan does not do run time load balancing but it does connection time load balancing in terms of diverting connections to the least loaded node? Correct?
For server side load balancing, yes. From the docs:
"With server-side load balancing, the SCAN listener directs a connection request to the best instance currently providing the service by using the load balancing advisory."
3. You mean to say in a two node RAC, it is totally fine to have one node having 1 scan and the other node having 4 scan's running.? But when do you actually use the srvctl relocate scan?
In a n-node cluster, you might want to take a node out of the cluster, which happens to be running a scan. You could relocate to another node.
Database connection load balancing on SCAN LISTENER
A reader, November 03, 2021 - 6:11 am UTC
Greetings!
Application uses RAC service (which is configured to run on both instances of RAC databases). We are seeing the number of sessions /connections are not evenly balanced between the instances.
Some times Node-1 has more number of connections than node-2 and vice-versa.
Questions -
1) Under what circumstances, Oracle scan listener may route DB connection request to the same node in unbalanced manner ?
2) What method application should be looking at , to load balance the database connection in the database when they connect. ?
3) Any specific connection settings will help to achieve the load balance the client connections ?
Thanks!