oracle on vsphere best practices

13
© 2013 VMware Inc. All rights reserved Oracle on vSphere Best Practices Filip Verloy, Sr. SE

Upload: filip-verloy

Post on 18-Jun-2015

1.902 views

Category:

Technology


3 download

DESCRIPTION

Best practices to run Oracle database on VMware ESXi

TRANSCRIPT

Page 1: Oracle on vSphere best practices

© 2013 VMware Inc. All rights reserved

Oracle on vSphere Best Practices

Filip Verloy, Sr. SE

Page 2: Oracle on vSphere best practices

2

Agenda

Benefits of running Oracle on VMware

Best practices for running Oracle on VMware

• ESXi host guidelines

• Storage guidelines

• Networking guidelines

Troubleshooting performance issues

Page 3: Oracle on vSphere best practices

3

Benefits of running Oracle on VMware

Manageability and Agility

• vMotion without downtime to the Oracle database (HW maintenance/upgrades)

Consolidation

• Maximum use of physical resources

Provisioning

• VM can be rapidly moved or duplicated

High Availability

• Protection against unplanned downtime by restarting the VM on another host

Fault Tolerance

• Continues availability (*1 vCPU only)

Dynamic Resource Scheduling

• vSphere/Storage DRS provides load balancing across a cluster (meet SLA’s)

Page 4: Oracle on vSphere best practices

4

Benefits of running Oracle on VMware cont'd

Power Management

• Dynamic Power Management (DPM) allows for conservation of power

Rapid Refresh

• Virtual environment can be rapidly refreshed for test/dev, training, and QA/UAT.

Network I/O Control

• Allows assignment of bandwidth or relative weighing between VM’s

Storage I/O Control

• Allows a level of storage predictability and fairness to ensure Oracle databases get what they are entitled too. (based on ‘fair’ access)

Page 5: Oracle on vSphere best practices

5

Best practices for running Oracle on VMware

Careful sizing and capacity planning for a given workload is still highly recommended – same rules as the physical world still apply

Page 6: Oracle on vSphere best practices

6

ESXi host guidelines

The VMware ESXi host BIOS settings can be specifically adjusted to maximize compute resources (such as disabling unnecessary processes and peripherals) to Oracle databases

Allow vSphere to choose the best VMM based on the CPU and guest OS combination (Automatic CPU/MMU Virtualization)

Use Hardware-Assisted Memory Management (EPT/RVI)

Set memory reservations equal to the size of the Oracle SGA + 2 times Aggregate PGA Target + 500MB for the OS (assuming Linux)

Use Large Memory Pages (linux hugepages)

Do not use Oracle Automatic Memory Management (AMM)

Do not disable balloon driver

Page 7: Oracle on vSphere best practices

7

ESXI host guidelines cont’d

Use as few virtual CPUs as possible

• Match the number of vCPU’s to the number of active foreground sessions in the database.

Use CPU reservations when over allocation resources

Enable hyperthreading (Intel Core i7 processors and above)

Disable NUMA at the virtual machine layer BUT leave enabled at the physical host BIOS and guest OS levels

Use Virtual SMP (with moderation)

Page 8: Oracle on vSphere best practices

8

Guest OS guidelines

Optimize the OS (patches, kernel settings)

• If possible use Oracle pre-install packages

• Oracle-validated RPM for OEL or Red Hat 5.x

• Oracle pre-install RPM for OEL or Red Hat 6.x

Disable unnecessary foreground and background processes

Install VMware Tools on all virtual machines

Time keeping by using NTP

Page 9: Oracle on vSphere best practices

9

Storage guidelines

Enable jumbo frames for IP-based storage (iSCSI/NFS)

Create dedicated datastores to service database workloads

Leverage SSD for indexes, redo logs, and frequently used data

Use VMFS for single instance Oracle database deployments

Align VMFS properly

RDM is recommended for large partitions and heavy I/O use databases

Use Oracle automatic storage management (ASM)

• ASM disk groups need to be created with equal disk types (performance of an ASM disk group is as fast as it’s slowest member)

• Create ASM disk groups based on I/O behavior characteristics (random, sequential, log files, …)

Page 10: Oracle on vSphere best practices

10

Storage guidelines cont’d

Use your storage vendor’s best practices documentation when laying out the Oracle database

Avoid silos when designing the storage architecture

Use Paravirtualized SCSI adapters for Oracle data files with demanding workloads

Use multiple virtual SCSI controllers to increase parallelism for I/O traffic inside the guest OS (separate redo log from data files)

vSphere 5.5 vFRC (mainly read I/O benefits)

Page 11: Oracle on vSphere best practices

11

Example layout

Page 12: Oracle on vSphere best practices

12

Networking guidelines

Use the VMXNET family of Paravirtualized network adapters

Separate infrastructure traffic from virtual machine traffic for security and isolation (performance)

Use NIC teaming for availability and load balancing (passive failover)

Take advantage of NIOC to converge network and storage traffic onto 10GbE

RAC interconnects, NAS, Oracle Data Guard jumbo frames

Turn off Dynamic Coalescing on RAC interconnects

Increase the interrupt rate (slight increase in CPU consumption)

Page 13: Oracle on vSphere best practices

13

Troubleshooting performance issues