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

Similar Messages

  • Oracle Applications 11i Load Balancing does not work with RAC one Node

    Hi all,
    Could you help me to resolve this issue.
    Architecture environment is :
    - One APPS tier node
    - Two nodes Oracle Database Appliance (Primary node 1 holds INSTANCE_1 et Secondary node is configurured to holds INSTANCE_2), i.e RAC one Node.
    - The primary node have instance_name SIGM_1 and the secondary node have instance_name SIGM_2, but in RAC one node, the secondary instance is not alive.
    We convert our EBS 11i environment to RAC following note ID Using Oracle 11g Release 2 Real Application Clusters with Oracle E-Business Suite Release 11i [ID 823586.1].
    When testing Database failover, Oracle Applications 11i load balancing does not work anymore.
    The root cause is that, when the primary node of the Rac one node is down, the INSTANCE_NAME_1 is automaically relocating to the surviving node,.
    During test failover, we imagine that when the primary node goes down, the secondary node start or relocate database with instance_name SIGM_2, and in that case the Oracle Applications load balancing works.
    Currently, when the primary node goes down, the instance_name SIGM_1 is relocated on the secondary node, which cause failure of Oracle Applications Load Balancing.
    Thank you for your advice.
    Moussa

    This is something I observed a long time ago for Safari (ie: around version 1). I'm not sure this is Safari, per se, but OpenSSL that is responsible for the behavior. I'm pretty sure Chrome does this and I've seen some Linux browsers do it.
    What I have done at the last two companies I've worked for is recommend that our clients do not use SSL SessionID as the way of tracking sticky sessions on web servers, but instead using IP address. This works in nearly all cases and has few downsides. The other solution is to use some sort of session sharing on your web servers to mitigate the issue (which also means that your web servers aren't a point of failure for your users' sessions). (One of the products I supported had no session information stored on the web servers, so we could safely round-robin requests, the other product could be implemented with a Session State Server... but in most cases we just used IP address to load balance with). The other solution is to configure your load balancer to terminate the SSL tunnel. You get some other benefits from this, such as allowing your load balancer to reduce the number of actual connections to the web servers. I've seen many devices setup this way.
    One thing to consider through this is that - due to the way internet standards work - this really can't be termed a bug on anyone's part. There is no guarantee in the SSL/TLS standards that a client will return the same SSL Session ID for each request and there is not requirement that subsequent requests will even use the same tunnel. Remember, HTTP is a stateless protocol. Each request is considered a new request by the web server and everything else is just trickery to try and get it to work the way you want. You can be annoyed at Safari's behavior, but it's been this way for over 5 years by my count, so I don't expect it to change.

  • 2 nodes in a RAC not load balanced well

    Our db is 2 nodes RAC with version of 10.2.0.3.0 on window 2003 server. I am wondering what else we may need to look into besides tnsnames.ora file to well balance the load between those two instances. Currently our
    db is not well balanced based on the following two things:
    1) query against gv$session
    2) different amount of archive log files created in those two servers
    Any help is greatly appreciated.
    Shirley

    1) query against gv$sessionMay be check the load on the individual servers as well and check to make sure that the LOCAL_LISTENER and REMOTE_LISTENER parameters are set correctly.
    2) different amount of archive log files created in those two serversI don't think measuring this would be a valid metric to evaluate the effectiveness of load balancing and this is not taken into consideration by oracle while load balacing the connections....
    HTH
    Thanks
    -Chandra Pabba

  • Coyotepoint E350 and OracleAs 10g Hardware Load Balancing SSL

    Hi:
    Has anyone been successful using a CoyotePoint E350 with XCEL SSL accelerator card and OracleAS 10g with SSL to hardware load balance an HTTPS site?

    You're on the right track adding the SSL certificate to the Load Balancer. I'm not really sure what you mean 'without the use of Webcache'? However, if I had the choise, I'd always add the certificate to the Load Balancer.
    A good document setting up a load balanced environment is the Enterprise Deployment Guide. Chapter 8 describes the tasks for a Forms environment.
    Regards,
    Martin

  • Oracle Web Cache - Load Balancer Mode

    Hello,
    I am facing a problem related to fault tolerance in Oracle Web Cache
    My environment:
    2 Nodes of Oracle Application Server 10.1.3 configured in cluster.
    have configured Oracle Web Cache (in LoadBalancer mode only) to simulate a BigIP load balancing above these two oc4j node. This to be used as fault tolerance so if one http request will fail the LoadBalancer will direct it to the second oc4j (its http server).
    I have used the defaults recommended by Oracle documentation for configuration clustering load balancer using Oracle Web Cache and using JSESSIONID for Session binding with oc4j-type. I left all other cluster/server setting to default
    Problem:
    The problem is when I am shutting down one oc4j instance the Oracle Web Cache tries to keep the session with the un-available oc4j node and not direct the session to the other oc4j node.
    If I choose to start a new session (loose current work) than it does work with the second (alive) oc4j node, but than where is its fault tolerance??
    What do i need to do to keep working with the same session over the second oc4j node. My deployed Web App is enabled to work in cluster, using Oracle Application Server console. Here is its orion-application.xml
    +<?xml version="1.0"?>+
    +<orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd" deployment-version="10.1.3.1.0" default-data-source="jdbc/OracleDS" component-classification="external"+
    schema-major-version="10" schema-minor-version="0" >
    +     <web-module id="session_rep" path="session_rep.war" />+
    +     <persistence path="persistence" />+
    +     <principals path="principals.xml" />+
    +     <jazn provider="XML" />+
    +     <log>+
    +          <file path="application.log" />+
    +     </log>+
    +     <cluster allow-colocation="false">+
    +     <replication-policy trigger="onRequestEnd" scope="modifiedAttributes"/>+
    +     <flow-control-policy enabled="false" />+
    +          <protocol>+
    +               <peer>+
    +                              <opmn-discovery/>+
    +               </peer>+
    +          </protocol>+
    +     </cluster>+
    +</orion-application>+
    Will appreciate any help !

    is OHS/apache deployed between web cache and your OC4J? if so, i think since OHS/apache is alive to web cache, web cache keeps routing to it.
    maybe in your script, you can shutdown both OHS/apache and OC4J totgether so web cache can correctly route.

  • Weblogic 9.2/10.3 Connecting to Oracle RAC

    What is the best way to connect to Oracle RAC from Weblogic? I am looking to do load balancing and no XA transaction. According to the Weblogic documentation, the recommended approach is to use multipool with each pool pointing to a specific listener. It is also recommended that the remote listner on Oracle Net Service. However, according to the Oracle RAC doc, it is recommended that we perform both client side and server side load balancing. So here is the question:
    To connect to Weblogic from Oracle RAC doing load balancing and no XA, what is the best approach? Multipool or a single pool with FCF enabled?

    I think driver level load balancing in such configuration has not been tested by weblogic and not guaranteed to work. There may be other implications.(which I am not aware :) )
    The JDBC forum can be helpful :- WebLogic Server - JDBC
    Edited by: Manish Chellappan on Jul 22, 2009 8:45 PM
    Edited by: Manish Chellappan on Jul 22, 2009 8:46 PM

  • 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

  • Question RAC load balance with app

    Hi there,
    How RAC help load balance the database if most of my applications connection use JDBC with specific IP or hostname. I'm using JDBC:thin client and not OCI.
    Is there configuration that allows the application without specify the hostname? If I SQLPLUS, I can logon to the database with username/password and SID. I know the connection is going through Oracle Net with the tnsnames.ora file.
    Thanks

    Hi,
    Thin JDBC supports multiple specifications for connection url. You can refer to this document http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/urls.htm#BEICDECB for more information.
    --romas                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Oracle Portal Load Balancing question

    Our customer wishes to have multiple Oracle Application Servers running Oracle Portal, with load balancing. They would like to have Web Cache collocated with one of these Portal servers, operating as a load balancer for the Portal servers (including the one collocated with Web Cache). Our understanding is that this is not supported, since Web Cache must use the same port number as the destination server it is load balancing, and this is a problem with collocation. The alternative of using mod_oc4j load balancing by OHS is we understand not supported for Portal. The customer does not wish to use external, hardware load balancers, or operating system load balancing. We understand that the solution is to use Web Cache on a dedicated separate server, to load balance the Portal servers. Can you please confirm that, or is collocation possible to avoid the cost of the dedicated Web Cache server.
    thanks,
    Message was edited by:
    user582458

    <<
    We understand that the solution is to use Web Cache on a dedicated separate server, to load balance the Portal servers. Can you please confirm that, or is collocation possible to avoid the cost of the dedicated Web Cache server
    >>
    You are right .. if the client does not want use load balancer you have no other choice.

  • Oracle rac 11g installation

    Hi
    Am planning to install oracle RAC 11g on linux server. Have doubt on installation of clusterware or grid infrastructure first .?
    I think grid infrastructure covers clusterware and ASM both and then oracle 11g software to be installed.
    But how to download grid insfrastructure software. Will it come with oracle 11g software..? or need to download it seperately.?
    Because when i try to download oracle RAC 11g which gives link to download the 11g software not grid.
    Thanks in advance,

    Hi,
    Its called "oracle one node rac"  you will find plenty of documents on metalink, extract is below, hope this helps you to understand the differences.
    Oracle RAC Database : Oracle RAC database is a clustered database. It can have more than one instance running on one or more hosts. To make is database RAC , there is another software needs to be installed called Oracle Grid infrastructure which takes care of multinode sync, ASM, Oracle restart etc. Oracle GI is necessary as a base of Oracle RAC. In Oracle RAC, the load is balanced across multiple instance of databases running on different nodes. This is best for Production database. Failure of any instance is abstracted from user and forwarded to another instance from the database server pool. No of instances can be controlled using Policy Managed or Admin Managed.
    Oracle RAC One Node : Some time we need to have RAC databases but donot need many instances, why? Simple answers to it is leverage the high availability of RAC. The Oracle RAC One node is a RAC DB runs on one host. The advantage is it saves your resource, can to converted to full RAC any time, Cluster fail over i.e. the Database instance is moved to new instance in case of any failure on host known as Instance Relocation,easy to upgrade etc. This type of database is well suited for small production and dev/test environments.

  • 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

  • FRM-92102 when accessing a form using a Load Balancer

    Greetings.
    We have two oracle application servers version 10.1.2.0.2 on windows 2003 running forms and reports. When just one a server is running everithing works fine, but when I start the second server the clients receive the message "FRM-92102 : A network error has occurred.The Forms Client has attempted to re-establish its connection to the Server 5 times without success.Please check the network connection and try again later" when the first form is called. In our coniguration the F5 Load Balancer is redirecting requests to the Apache ports in both Oas Machines, we are not using the webcache port. I read the note "FRM-92102 When Using A Software Load Balancer With Forms [ID 465583.1]" but this note applies when webcache is used. Our LBR is set using "insert cookie" persitent mechanism.
    I have the following questions:
    What configuration is needed in OAS files in order to use a LBR and avoid the FRM-92102 error?
    How can I debug or trace FRM-92102 issues?
    Thanks!
    Ramiro Ortiz.

    FRM-92102 is the result of the client not getting a response from the server (mid tier). This generally means only one of a couple of things:
    1. The mid tier which parented the Forms session is not responding. This could be because it is overloaded, the web server (OHS or WebCache) is failing, or something else is preventing the client from getting a response.
    2. Client requests are being routed to the wrong mid-tier server. This is usually the result of improper load balancer configuration or an LB failure. However, generally in this case FRM-92101 would result. If you are using an unpatch 10.1.2 installation, as I believe you are (10.1.2.0) then seeing either error may be possible.
    Regarding the note that discusses using Oracle WebCache for load balancing, regardless of whether you are using an Oracle product or hardware or whatever for loadbalancing, the same concept will apply. The load balancer must have session binding enabled. Understanding whether or not this is the problem should be fairly easy to determine. Simply shutdown one server. If everything works correctly, restart the second server. If the problem now occurs, you can likely assume you have a session binding issue and should likely refer to the load balancer's documentation or their Support group.
    Also, important to understand is that if the load balancer is designed to alter the header information in any way, the likelihood of failing Forms sessions is high. Forms is expecting very specific information in the header exchange. Some intermediate servers (load balancers, ssl accelerators, firewalls, etc) have been known to intentionally or unintentionally alter the header. Again, contact the vendor.
    If you are seeing that the client console is reporting 5 retry attempts, yet you have not set "networkRetries" in formsweb.cfg, this often suggests a critical tcp/ip failure. Often, but maybe not always, the result of a damaged header or other misconfiguration or failure outside of Forms.

  • Does Oracle RAC improve performance over single-instance db

    Hallo!i am running a single instance db that seems to be overwhelmed by workload as CPU is constantly 100% utilized despite code and instance tuning and users persistently complain of system slowness.
    It is our plan to uprgade to more powerful servers but would also like to implement load balancing to have 2 instances and 2 servers share workload via RAC solution.
    Some of peers state that RAC mostly a High Availability solution to enable continuity should one instance fail.I would like to know if db performance would improve on RAC as load balancing between 2 or more instances occurs in a RAC setup.
    Thanks.

    4joey1 wrote:
    Some of peers state that RAC mostly a High Availability solution to enable continuity should one instance fail.I would like to know if db performance would improve on RAC as load balancing between 2 or more instances occurs in a RAC setup.RAC also provides scalability - as you have additional servers and database instances to deal with the workload. It is not a mere high availability and redundancy architecture.
    BTW, a 2 node RAC is IMO not a "real" RAC... We also have one of those and I regret not insisting that it be, at minimum, a 4 node RAC - from both a redundancy/availability and performance/scalability viewpoints.
    Simple example - on our bigger RAC we are dealing with about 37000+ row inserts every second (3+ billion rows per day). This workload is only handled (on smallish dual 2-core CPU servers) due to RAC. No way that a single one of these servers would alone (as a single non-RAC instance) be capable to deal with that workload.
    So yeah - RAC is most definitely also about performance and scalability too. (but that does not mean it's a magic wand for solving your performance problems either).

  • Load Balancer - R12

    Hi Hussein,
    While configuring the Loadbalancer for Oracle Applications, at Load balancer level, we need to ask Load Balancer Guy to set the following parameters
    Load Balancing Method: Predictive Node Address
    Persistence Type: Active HTTP Cookie with Method Insert and Cookie Expiration 12 hrs
    Metalink note spcifies the following regarding Session Persistance....could you please explain me, what is session persistance, when we access any module,can't it maintain session persistance?
    Reference:
    ===========
    2.1.4: Configuration Changes on the Load Balancer
    The Hardware Load Balancer must be configured for session persistence: various modules shipped with Oracle E-Business Suite need to maintain session state. If this property is not set, the loss of transaction state may result in users experiencing unpredictable errors.

    Hi,
    Please see the links referenced in this thread for "Session Persistence" explanation.
    can not open url
    can not open url
    Thanks,
    Hussein

  • Load balancing in Oracle RAC 11g (11.1.0.6.0)

    Hi!
    One of our customers use load balancing, now all users get connected against node 2.
    --The configuration of load balancing will be correct I think, have worked before
    --How do I verify the load on each node ?
    --What can be wrong?
    --Need help, what to check?
    --tnsnames.ora looks like
    X.world =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = X)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = X)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = X.X.se)
    Regards
    T

    Hi,
    --The configuration of load balancing will be correct I think, have worked before
    --How do I verify the load on each node ?
    --What can be wrong?
    --Need help, what to check?
    Services
    Traditionally an Oracle database provided a single service and all users connected to the same service.
    A database will always have this default database service that is the database name.This service cannot be modified and will always allow you to connect to the database.
    Do not use the default database service, create at least one service.
    With Oracle Database 11g, a database can have many services (up to a maximum of 115 per database).
    The services hide the complexity of the cluster from the client by providing a single system image for managing work. Applications and mid-tier connection pools select a service by using the Service Name in their connection data.
    http://www.oracle.com/technetwork/database/clustering/overview/awmrac11g-133673.pdf
    http://download.oracle.com/docs/cd/B28359_01/rac.111/b28254/hafeats.htm
    Regards,
    Levi Pereira

Maybe you are looking for