Solved

How many instances should be there in RAC to get best performance

Posted on 2012-03-18
11
543 Views
Last Modified: 2012-04-19
We have 4 instances RAC on 11.1.0.7 and ASM.

In order to get the best performance I have below questions.

1. In theory how many instances can be added in RAC (11g)?
2. Practically how many instances can give best performance?
 Note: I think after certain number of instances the performance will be flat, means no more performance benefit after a certain level.


Is there any already proved method with statistics to decide the same?
0
Comment
Question by:YBSolutions
  • 3
  • 3
  • 2
  • +2
11 Comments
 
LVL 4

Expert Comment

by:VictorTarasov
ID: 37734612
Oracle says that Rac enhances fault tolerance option, rather than performance. It may be faster query performance due to parallel execution, but this may become a bottleneck IO.
So it is necessary to analyze each system and give personalized recommendations.
0
 
LVL 5

Expert Comment

by:Bajwa
ID: 37735360
RAC is not for performance but scalability and fault tolerance.  

With 9i and 10.1 it was between 4 and 128 depending upon the clusterware
with 10.2 it is 100

Scalability meaning that let's say you have a business where you sell something and your business is growing by leaps and bounds.  so what you do is

1.  Get and customize a great application for your current business needs (2 nodes in a RAC).

2.  Then in couple of years your business has shot through the roof and your RAC can't handle the transactional volume.  Since you bought RAC all you need to do is to Buy another machine and add it to the RAC (from 2 nodes to 3)

and thus in another couple of years you can add another machine and so forth.

Performance in RAC is limited to the interconnect speeds due to Global cache residing in all active nodes.
0
 
LVL 47

Expert Comment

by:schwertner
ID: 37736707
RAC is not for performance or scalability (this is feature of the application and DB structure).

RAC is for Load Balancing over cheap commodity server machines - this means high load can be divided into many instances installed on cheap servers.

Fault tolerance? No! The DB is centralized. No matter how many instances are running in the RAC if the only DB files collection experience diffuculties (corrupted device for instance) there is not easy way to solve the problem.

Yes - the maximum number of the nodes in one cluster could be 100, but this also means Oracle licences.

About the performance question:

You have to study the RAC wait events:

http://www.centroid.com/knowledgebase/blog/measuring-oracle-11gr2-rac-waits

Another good tool is AWR reports of the RAC instances.

In AWR pay attention to the following:

1. PERFORMANCE

2. THE TOP 5 WAIT INVENTS

3. CPU usage
0
 

Author Comment

by:YBSolutions
ID: 37792992
Dear schwertner,


Are you sure that 'RAC is not for performance or scalability' ?
If so, please think again and explain in details, may be I didn't get it correctly.
0
 
LVL 47

Accepted Solution

by:
schwertner earned 500 total points
ID: 37797469
My dear friend YBSolution,

last fall I read the Oracle electronic course "RAC 11g administration". I was greatly surprised when Oracle itself explains that scalability could be easily comprimised by bad application DB design. And Oracle give example:
- 4 RAC instances
- centralized DB (RAC uses 1 (one) single database.
- All applications on the 4 nodes use same table to hold data or to register new actions. Due the locks on commonly used tables and rows there is zero scalability, no matter how many nodes you add to the RAC

If course my attempt to explain the Oracle text is miserable. The original text is 15-20 pages long. But this was a great chapter. Oracle explains in details the difference between performance and scalability .... I am sure you can find electronic copy of this Oracle course somewhere in the net or on the OTN.

Next very interesting thing was that disk cylinders that are peripheral are 4-10 times faster then cylynders close to axes of the disk drive. So ASM has option to place the active tablespaces in the peripheral cylynders ... but only if it knows where they are, because logical volumes mask the real physical location of the disk.

Facing the complexity of RAC and ASM i fear that RAC is marketing trick of Oracle. Adding this complexity the RAC is very hard to be administered, there are so much bugs, that Oracle recomends when patching RAC to create ... clonning of the installation. Could you seriosly accept such advice?

RAC was intensivily made in the times of the dotcom financial catastrophe in the begin of the 21 century. The companies haven't money for expensive SMP (Symetric Multiprocessor Computers)  computers. So the idea of Oracle was to downgrade to cheap servers. But the complexity of a RAC is high, the administration - hard task. The worst thing is that the application (if there are many instances of the application or the application uses frequently common resources) has to be specially written to make advantages from RAC.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:YBSolutions
ID: 37803231
Hi Dear,

May I get the URL for the article you read?
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37803260
>>May I get the URL for the article you read?

It is not an article.  From the post: "Oracle electronic course "

I believe you will find it is an Oracle course:
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getCourseDesc?dc=D50311GC10
0
 
LVL 47

Expert Comment

by:schwertner
ID: 37806558
Everybody knows these facts.

For instance look here:

A Competitive Review of Oracle Real Application Clusters

download.microsoft.com/download/6/9/d/.../whynotoraclerac.docxYou +1'd this publicly. Undo

Furthermore, Oracle RAC best practice says that it cannot make a non-scalable application scale,
and suggests using data partitioning to minimize the traffic ...

.......

In google look for "A Competitive Review of Oracle Real Application Clusters"
0
 

Author Comment

by:YBSolutions
ID: 37865733
I got the below error while trying to access the URL
'http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getCourseDesc?dc=D50311GC10'

Your query didn’t match any course descriptions. Please try again.

Anyways, my question is answered.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37865752
I pull up:
Oracle Database 11g: RAC Administration


  Oracle University provides ILT and LVC students a downloadable eKit containing the training materials for this course.

 Oracle University eKit now viewable on the iPad
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now