Load Balancing on RAC Test

Hi Team,
We have 2 node ORACLE 10g RAC setup on RHEL4
We have to prepare a Load Balancing Scenario
1. How and on what basis Client Requests/load balancing are done on the oracle 10g RAC nodes
2. How to Moniotor on which node client request/tasks are performed
Please Lighten me on this
Thanks in Advance for your help
Thanks,
AJ

1. depends on how your load balancing is setup - client side (tnsnames.ora) or server side (remote listener)
See http://www.oracle.com/technology/pub/articles/hunter_rac10gr2_iscsi_3.html#30
2. select from gv$session

Similar Messages

  • About load balancing in rac

    Dear Gurus
    I want to ask about load balancing in RAC.
    we have two nodes rac1 rac2 with physical ip as virtual ip as
    rac1 rac2
    physical 10.22.1.50 10.22.1.51
    virtual 10.22.1.54 10.22.1.55
    and two appliction servers app1 app2.Actually in tns file of app1 there is entry of virtual ip of rac1 (10.22.1.54)and in app2 virtual ip of rac2 (10.22.1.55). so we want to test whether load balancing is happening or not .like if app2 is down so whether the connection of app1 moving to rac2 also or not
    so we down app2 and check.Guys tell me how could i check in that duration that whether connnection going to rac2.
    i am unable to find the parameter of sessions connected in awr .Please tell how could i identify

    i have stopped the IM's of one of my application server and checked the connections to my database with below query and according to it its connecting to both instances.Does it means that load balancing is happening fine.
    SQL> SELECT inst_id, TO_CHAR(logon_time, 'DD-MON-YYYY HH24:mi:ss') "Hour when connected", count(*) "DB Sessions"
    2 FROM gv$session
    3 WHERE type = 'USER' and TO_CHAR(logon_time, 'DD-MON-YYYY HH24:mi:ss') like '%05-OCT-2011 17%'
    4 GROUP BY inst_id, TO_CHAR(logon_time, 'DD-MON-YYYY HH24:mi:ss')
    5 ORDER BY inst_id, TO_CHAR(logon_time, 'DD-MON-YYYY HH24:mi:ss');
    INST_ID Hour when connected DB Sessions
    1 05-OCT-2011 17:20:06 1
    1 05-OCT-2011 17:27:18 1
    2 05-OCT-2011 17:11:31 1
    2 05-OCT-2011 17:26:28 2
    2 05-OCT-2011 17:26:38 1
    2 05-OCT-2011 17:27:18 1

  • Weblogic: load balancing and RAC contention

    I cannot locate any useful documentation on this: I am trying to find the optimal configuration to allow an Weblogic Application server to load balance to RAC.
    I see high numbers of v$sqlstats.clwait_delta for sessions connected from weblogic servers; typically from 25-95% over the overall statement execution time.
    Configuration is a three node RAC 10.2.0.4 on Linux; with and eight node weblogic cluster connected using about 150 sessions (equally divided between the rac nodes), hosting a number of applications. They use "Least Connections" load balancing which means any thread(/connection) could be used next. The weblogic sessions connect to a RAC service that is configured with LOAD_BALANCE=YES.
    I suspect that contention is caused by behaviour such as
    - insert on one node, then immediately query back on another node
    - inserts to indexed tables being distributed across all three nodes.
    There is too much going on here, and I want to simplify the configuration to eliminate contention for the same data blocks across nodes - this will likely mean new database services configured with LOAD_BALANCE=NO and some form of application partitioning on the weblogic servers. There are other load balancing schemes available for weblogic; but none seem designed to work well with rac.
    Is there any best practice documentation available to configure weblogic on RAC (as opposed to single-instance, which doesnt have any such contention issues).
    Any pointers appreciated!
    Rgds
    Mark Teehan
    Singapore

    Hi,
    see these 2 whitepapers:
    http://www.oracle.com/technetwork/database/enterprise-edition/twpracwkldmgmt-132994.pdf
    http://www.oracle.com/technetwork/database/enterprise-edition/bestpracticesforxaandrac-128676.pdf
    they should provide you with enough information on what to do.
    Regards
    Sebastian

  • Load balancing in RAC 11.2

    Hello,
    what is the best practise for rman backups load balancing for 11.2 RAC.
    Should we use scan listener or should we use old method of allocating each channel to each node ?

    If you are using FRA (db_recovery_file_dest - obviously a SHARED FRA diskgroup/filesystem etc.. ) you set parallelism and let it handle it. It will automagically do some load balancing. You no longer need to allocate/deallocate channels in this configuration.
    RMAN> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    # default backup device is disk
    RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 6;
    One thing to consider. Your archivelog backup destination needs to be accessible CLUSTER WIDE ie on ALL nodes.
    I would like to see Oracle support ACFS for this sort of shared location - currently it is not supported. I have tested it and it works, but there is still a single-point-of-failure. ASM itself.

  • Load balancing on rac database with single node appsTier

    Hi,
    Please advice me, I am working on to configure load balancing on appstier, following is my setup and steps I did so far.
    Host name      Services
    Clelx062ptlge --     Rac 1 – only database
    Clelx063ptlge --     Rac 2 – only database
    Clelx042ptlge --     All apps services including concurrent managers
    I have two R12 database(UDEV -- development & HRQA -- UAT), I only made changes in apps tier xml file of udev for some load balancing parameters, following are the changes I did.
    *<TWO_TASK oa_var="s_tools_twotask" osd="unix"> udev_806_BALANCE </TWO_TASK>*
    *<CP_TWOTASK oa_var="s_cp_twotask" customized="yes">udev_806_BALANCE</CP_TWOTASK>*
    *<TWO_TASK oa_var="s_weboh_twotask" osd="unix"> udev_BALANCE </TWO_TASK>*
    I changed the values from "UDEV" to given above value. After the above change I ran autoconfig. Then Concurrent managers and forms services are not automatically getting failover to second database node, I need to bounce services to fail it back to other available Rac node. Please note that we have only one appsTier
    Thanks,
    Tanveer Mohammed.

    Hi,
    Yes, i have checked the doc referenced, and already did the steps given in the doc. Also i did all the steps given into ID 388577.1 but still Concurrent managers and forms services are not automatically getting failover to second database node, I need to bounce services to fail it back to other available Rac node.
    Please advice...
    Thanks,
    Tanveer Mohammed.

  • ACE Load Balance setup and testing - vip

    Got a new ACE 4710 and am I new to the appliance. I am testing out a senario with load balancing between two servers. In testing when I ping the VIP ip address the replies I see are from the real server ip addresses. I am just wondering if this is the correct normal behavior or should I see the ping replies coming from the VIP ip address?
    Thanks

    Do you use the
        loadbalance vip icmp-reply active
    command?
    policy-map multi-match POL45
      class VStest
        loadbalance vip inservice
        loadbalance policy L7SLBPOLtest
        loadbalance vip icmp-reply active

  • Load Balancing in RAC

    If you have 2 node cluster , you have configured Node 1 as Preferred instance and Node 2 as available.
    According to Oracle , the service will always run on a preferred instance and will relocate to available instance in case of preferred node failure.
    Also you have server side load balancing, as per documentation the service will relocate on available instance if the preferred node crashes.
    Question: How will Oracle take care of Load Balancing , since the service on available node will only run if the preferred node crashes. Since the service is not running on Node 2 (available instance) ? How will oracle distribute the connections among the nodes?

    The answer to your question depends one the configuration of your Oracle Net Services, Whether you have configured connection load balancing or server side load balancing. Oracle will only balance the workload among the database instance running the service. By default Oracle starts the service on prefered node and in your case you have configured only one preferred database instance for your service and at a time service will run on one node only so Oracle does not have any options to distribute the workload even if you have configured the server side load balancing for the services using the service level goals.
    To explain it further, consider you have 3 node cluster. The database instance on first and second node are preferred instances for the net service and service-level goals are defined for server side load balancing.
    Now suppose second node fails and Oracle relocates the service to third node. Because Oracle is aware about the services running in the cluster even the relocated services (You should read about LOCAL_LISTENER and REMOTE_LISTENER to understand how Oracle register services with listeners on other cluster nodes) thats why using the load balancing advisory Oracle decides, which node the new database connection should be connected.

  • Oracle Metrics Load Balancing

    I am trying to research the method of load balancing using Oracle Metrics Server/client. Does anyone know of any useful resources ...I am looking for something which can give a brief overview of how this works and what is required plus also something along the lines of a step by step configuration guide.
    If anyone can help it would be much appreciated.

    try this,
    http://oracleinstance.blogspot.com/2010/08/transparent-application-failover-taf.html
    http://oracledba-videos.blogspot.com/2009/11/transparent-application-failover-taf.html(video)
    if you have metalink access, Check the Oracle Metalink Notes.
    Note:226880.1 - Configuration of Load Balancing and Transparent Application Failover
    you can find n number of threads in our forum search
    some References:-
    load balancing in RAC
    Load Balancing on RAC Test
    Load Balancing with 10g RAC

  • Oracle RAC Concept  - load balancing

    Hello All,
    I have a question about Oracle RAC and how it balance loading.
    What I know about Oracle RAC that it balancing load between its node, so if a new session is connected to the Database it will execute on the node which have less load.
    If I am having an application that connects to the database with few number of sessions and some sessions have huge (huge load) processes to execute while the other sessions are executing small process (in terms of load).
    So below is an example scenario that i am asking for an answer of it:
    if am having a two node RAC database.
    My application that is connected to this RAC database wants to execute three processes P1, P2 and P3 each will have a session correspondingly S1, S2 and S3
    Let is say that P1 will take 60% of the database resources (memory ....) and P2 will take 1% and P3 1%.
    So my question is it a sessions load balancing or Processes load balancing ? So in case and randomly (Managed by ORACLE RAC) S1 is connected to node 1 and it is using node 1 resources so the load on node 1 will be 60%, so when S2 and S3 needs to connect it will go to node 2 since node 1 is loaded. in that case i will have Node 1 using 60% of it is resources (becuase of S1 that is executing P1) while node 2 only uses 2 % (because of S2 and S3 that is executing P2 and P3).
    Is that how Oracle RAC works ? or it balance the load of S1 (60%) between node 1 and node 2 ?
    I am asking this question since my application is not users application, so it will connect to the database with few number of sessions, and 1 session of them may execute a huge process while the other are executing small processes.
    So in that case, how RAC is doing the balance loading?
    Regards,

    i hope , this links may help you.
    Thread: Server side Load balancing in RAC
    Server Side Load Balancing Testing
    read Oracle documentation:
    http://www.oracle.com/pls/db102/search?word=server+side+load+balancing&partno=
    http://www.oracleracexpert.com/2010/01/oracle-rac-load-balancing-and-failover.html
    http://www.databasejournal.com/features/oracle/article.php/3659411/Oracle-RAC-Administration---Part-15-Connection-Load-Balancing-and-FAN.htm
    http://oracleinstance.blogspot.com/2010/08/transparent-application-failover-taf.html

  • Server Side Load Balancing Testing

    Hi,
    Can any one tell me about any test case for server side load balancing in an 11.1.0.7 RAC?
    I have a 2 nodes RAC with local_listener and remote_listener set properly (for server side load balancing). For testing, i have create a TNS at my client side which points to only one node of RAC (a single ADDRESS entry pointing to node 1 of my RAC). So, from this client, when ever i connect, it always connects me to the node 1 which i have mentioned in the TNS. Does it mean that server side load balancing works in conjunction with client side load balancing only and i should add ADDRESS entry in my TNS for the second node also? If yes, then how can i create a test case to check server side load balancing?
    Thanks
    Salman

    Thanks Rajeysh but i already have seen these documents after "googling" about server side load balancing but these documents don't give my any idea for testing the server side load balancing. My goal is actually testing the following scenario
    Creating a TNS entry to connect to a RAC database (with server side load balancing enabled) by using a single ADDRESS line in TNS which points to node1 to connect to service on node 1 (service_name is set to same value on all the nodes).
    Now, if i invoke 10 SQLPLUS windows to connect to the RAC database using this TNS, it always connects me to instance 1 running on node 1, where is server side load automatic load balancing? Why new sessions are not being directed to some other instance and why every time i always connect to instance 1?
    Salman

  • Load Balancing for EBS R12

    Hi husssein,
    I have a pc shuttle with test EBS R12 on RHEL4.6.
    I want to practise/test installing "appsTier Load Balancing" because this is one of our client's requirement.
    I have 1 laptop and i can borrow another from my officemate. I will install rhel4.6 both on the 2 laptops.
    Is it possible to simulate testing on "appsTier Load Balancing" using the 2 laptops? and the dbTier resides on the
    shuttle pc?
    Thanks a lot

    Hi,
    Well, from your experience, which is difficult to setup/configure > Load Balancer or RAC?I would not compare, but personally I believe configuring load balancing is more straightforward.
    By the way the term "RAC" is quite misleading. It means "Real Application Cluster" and yet it is used or point to the database Tier, when is should be on tha AppsTier because of the word "Application".
    So why cannot they RAC the AppsTier?As mentioned above, RAC is a database feature which means you will need to have an Oracle database installed (Enterprise Edition) to configure RAC. For the application tier, you will have to use load balancing. Both RAC and Load balancing are forms of Clustering.
    Regards,
    Hussein

  • How to load balance Agents across multiple Oracle Management Servers?

    Hi everyone
    We have the 2 OMS servers in our OEM environment. We would like to set up our management agents to load balance over these 2 servers...Or if not load balance then at least set up the agents so they can access either/or OMS.
    I've looked through the documentation and in google, but can't seem to find the answer.
    Can someone point me towards the documentation please
    Thanks
    R

    OMS is just an appserver with a repository. You can load balance the appservers with an F5. You can load balance the repository with RAC.
    So ... your options for load balancing and resilience are :-
    1. one agent on each server, multiple OMS appservers load balanced, one RAC database (with dataguard standby)
    2. two agents per server, two appservers, two repositories.
    Both architectures work. Option 1 offers the best load balancing and resilience.

  • Remove load balancing...

    Oracle 10gR2 RHEL 4 AS 64bit
    I wanted to know is there a way to remove load balancing in RAC? Would I just set the LOAD_BALANCE parameter to OFF in the TNSnames.ora file? Would that take care of it? The problem is occurring because developers are trying to upload images into the database (using jumploader) and the file is stored on the first node. What happens is during the upload a procedure searches for the file on the second node (when it is actually on the first node) and then an error is returned. Below are my current TNS entries:
    PROD =
    (DESCRIPTION =
    (LOAD_BALANCE = ON)
    (FAILOVER = ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TAF)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 180)
    (DELAY = 1)
    TAF =
    (DESCRIPTION =
    (LOAD_BALANCE = ON)
    (FAILOVER = ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TAF)
    PROD2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD)
    (INSTANCE_NAME = PROD2)
    PROD1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node1-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD)
    (INSTANCE_NAME = PROD1)
    )

    In this case, changing the tnsnames.ora file alone won't do it. RAC has two independent load balancing sides, client side (tnsnames level) and server side (listener level). The client side is simply a random (yep, random) picking of a listener on an instance to go to. On the server side, however, a given listener can then hand that connection off to another listener on a less loaded machine. Even if you connect via tnsnames to a specific instance, you may be connected to another machine.
    Your best bet would be to use services, you can create a service in the cluster that can connect to a specific node with a different service name than "standard" connection. I have used this for reporting instances on a specific node cluster. You then create a new tnsnames alias to point to that new server. Note. If you use the SERVICE_NAMES parameter within your database this will not work, as anything pointed to by it will override the service names.
    An alternate idea would be to nfs mount your filesystem that contains the pictures to each of your remaining rac nodes.
    Cheers
    Jay Caviness
    http://www.grumpy-dba.com

  • Router can perform static route load balance

    Dear All
    I am not sure a question. I need your idea and help. The question is if the router can perform static route load balance. I tested it. The result showed No. If you have any experience on it, could share it with me. I also post my result here. Thank you

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    Normally they can, but you generally need different next hops.  How did you "test".

  • Load balancing of DB RAC using weblogic server

    Hi All,
    I want to test the load balancing of Data base RAC for my application. I got the box which is installed RAC in it with two nodes. I configured the multidatasource which points to individual data sources to each node.
    Is this configuration is correct or not? to test the load balancing of the Database. I come to know that there is something called SCAN from oracle 11g but it is not supported 100% by web-logic server(we are using weblogic server 9.2MP3).
    How many requests I made all the requests are going to the Node1 only not even one is gone to the node2. Any specific reason.
    Thanks,
    Venkat.

    Another alternative is, keep the property file in any pre-defined location. Write a class which reads the properties from the file and returns the one which is requested by caller and deploy this class. Whenever you have to change the properties just update the property file on server and next call to fetch the property should return the updated one.
    Downside of this approach is file I/O everytime. To overcome that you can actually "cache" the properties in a hashmap. Basically when any property if requested, first check the hashmap, if not found then only read from property file and also update in hash map. Next time same property will be returned from hash map itself. The hash map will be cleared at every server restart since its in the memory. You will also need to build a method to clear the hashmap when you update the values in the property file on server.
    This solution would be suitable for small size files and when network overhead of calling a DB needs to be avoided.

Maybe you are looking for