Post on 23-Apr-2020
transcript
Virtualizando Banco de DadosOracle
Tradicional & Hiperconvergente
Virtualizando Banco de Dados OracleTradicional e Hiperconvergente
Thiago Ferreira and Brian Yeomans
Oracle Senior System Engineer
Thiago.ferreira@Dell.com
Brian.Yeomans@Dell.com
Agenda
• Benefícios;
• Ambiente Tradicional & Hiperconvergente;
• Boas Práticas vSAN com Oracle ;
• Boa Práticas Oracle com Vmware;
• Suporte;
• Oracle Assessment;
• Size;
Benefícios Oracle com Vmware• License and Support Considerations
– Segment Oracle VMs
– Maximize CPU Utilization
– Licensable Cores
• Administration
– Fewer Manual Steps
– Enforced Standardization
• Built-in High Availability
• Improved Efficiency/Utilization
• Distributed Resource Scheduler
• Site Recovery Manager (VMware only)
• Rapid Provisioning
Tradicional & Hiperconvergente;
HiperConvergente
SAN
Servers
Storage
Tradicional
Hiperconvergente Vmware vSAN
Fast Network
Virtual
SAN
Now
Boas Praticas Oracle Vmware vSAN
•vSAN is distributed object-store datastore formed from locally attached devices from the ESXi host. It uses disk groups to pool together flash devices as single management constructs. Therefore, it is recommended to use similarly configured and sized ESXi hosts for vSANCluster to avoid imbalance. For scale-ups, consider an initial deployment with enough cache tier to accommodate future requirements. For future capacity addition, create disk groups with similar configuration and sizing. This ensures a balance of virtual machine storage components across the cluster of disks and hosts.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
Boas Praticas Oracle Vmware vSAN
• Design for availability. Depending on the Protection (FTT) setting, design with additional host and capacity that enable the cluster to be automatically recovered in the event of a failure and to be able to maintain a desired level of performance.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
Boas Praticas Oracle Vmware vSAN
• vSAN SPBM(storage policy-based management) provides storage policy management at virtual machine object level. Leverage it to turn on specific features like checksum, erasure coding, and QoS for required objects.
• In case of very latency-sensitive application, use RAID 1 (Mirror) for data and redo disks. Otherwise, use RAID 5 (erasure coding) for data disk and RAID 1 for redo to provide the balance between space efficiency and performance. Erasure coding can be independently applied to different virtual machine objects, which provides simplicity and flexibility to configure database workloads.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
https://blogs.vmware.com/virtualblocks/2018/11/30/managing-your-data-on-vsan-with-spbm/
Boas Praticas Oracle Vmware vSAN
• Deduplication and compression in vSAN can help provide space efficiency and can be used in case application-level compression was not used. The space saving obtained due to deduplication and compression is specific to the application workload and data set composition. Since the domain for deduplication is at the disk group level, smaller number of large disk groups typically yield higher overall deduplication ratios than larger number of smaller disk groups do.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
Boas Praticas Oracle Vmware vSAN
• With the increase in stripe width, you may notice IO performance improvement because objects spread across more vSAN disk groups and disks. However, in a solution like Oracle where we recommend multiple VMDKs for the database, the database is spread across vSAN Cluster components even with the default stripe width of 1 for each of the VMDKs, essentially achieving the same objective of a larger stripe width for one large VMDK holding the entire database. So increasing the vSAN stripe width might not provide tangible benefits. Moreover, there is an additional Oracle ASM striping at the Oracle VM level as well. Therefore, it is recommended to use the default stripe width of 1 unless there are performance issues observed during the destaging process.
https://storagehub.vmware.com/t/vmware-vsan/oracle-database-12c-on-vmware-virtual-san-6-2-all-flash/best-practices-of-oracle-database-on-all-flash-virtual-san/
Boa Praticas Oracle com Vmware;
• Recomendação de Hardware• Bios Settings – 22 Recommendations;• VMware vSphere Client CPU/MMU Virtualization
Automatic;
Hyperthreading
> Xeon 5500 series processors - Enable
https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/vmware-oracle-databases-on-vmware-best-practices-guide.pdf
Virtual CPU Recomendação✓ VMware recommends not over-allocating vCPUs but matching the exact workload based on the actual
Oracle workload;
✓ After the workload is established, vCPU over commitment can be done with caution;
✓ If the application is commercial, follow published guidelines where appropriate;
✓ If the application is custom-written, work with the application developers to determine resource
requirements;
✓ For Tier 1 production BCA databases, the recommendation is to avoid over commitment of processor
resources (maintain 1:1 ratio of physical cores to vCPUs);
✓ CPU over commitment should be based upon actual performance data to avoid adversely affecting
virtual machine performance;
https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/vmware-oracle-databases-on-vmware-best-practices-guide.pdf
Memoria Virtual
Memoria Virtual
Huge Page✓ Note 361323.1 – Huge Pages on Linux: What It Is... and What It Is Not... ;
✓Note 361468.1 – Huge Pages on 64-bit Linux ;
✓ Note 401749.1 – Shell Script to Calculate Values Recommended Huge
Pages/Huge TLB Configuration ;
✓ Note 46001.1 – Oracle Database and the Windows NT memory architecture,
Technical Bulletin ;
✓Note 46053.1 – Windows NT Memory Architecture Overview;
✓https://docs.oracle.com/database/121/UNXAR/appi_vlm.htm#UNXAR391;
Vmware Storage✓ Enable jumbo frames for IP-based storage using iSCSI and NFS;
✓ Create dedicated datastores to service database workloads;
✓ Use VMware vSphere VMFS for Oracle database deployments;
✓ Align VMFS properly;
✓ Use Oracle Automatic Storage Management;
✓ 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;
Vmware Storage Layers
VMFS x RDM
Vmware Network
Vmware Oracle RAC Network
Performance
https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/vmware-oracle-databases-on-vmware-best-practices-guide.pdf
Vmware Oracle RAC Limitações multwrite Lun
https://docs.vmware.com/en/VMware-Cloud-on-AWS/solutions/VMware-Cloud-on-AWS.df6735f8b729fee463802083d46fdc75/GUID-A7642A82B3D6C5F7806DB40A3F2766D9.html
LicenciamentoOLSA – “Installed and/or Running”
Licenciamento Oracle com Vmware
• VMware CPU Affinity + VMware Log insight;
• Cluster Dedicado ;
Suporte Oracle Vmware
Oracle Support Note 249212.1
http://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/oracle/vmware-oracle-support-affirmation.pdf
Palo Alto, California
VMware’s business mission is to reduce complexity, lower costs, and improve information technology service delivery for
customers. Our extended support policy supports this mission by driving resolution of customer technology issues that involve
multiple product vendors. VMware is committed to its customers’ success and supports their choice to run Oracle software in
modern, virtualized environments.
VMware Support will accept accountability for any Oracle-related issue reported by a customer. By being accountable, VMware
Support will drive the issue to resolution regardless of which vendor (VMware, Oracle, or others) is responsible for the resolution.
In most cases, reported issues can be resolved via configuration changes, bug fixes, or feature enhancements by one of the
involved vendors.
In the rare situation that another vendor is unable or unwilling to provide a satisfactory technical resolution, VMware Support will
immediately notify the customer, assist in escalation and explore other potential technical workarounds with the customer.
VMware will also assist its customers with technical issues for other Oracle software products, besides the Oracle Database and
provide similar escalation assistance if needed.
Signed: ____________________
Scott Bajtos, Senior Vice President
Global Support Services and Customer Advocacy
VMware
Vmware Oracle Support
Oracle Assessment
• Dell Live Optcis
• Oracle AWR
Oracle Assessment Exemplo - LiveOptics
Oracle Assessment Exemplo - LiveOptics
Oracle Assessment Exemplo - LiveOptics
Oracle Assessment ExemploServidor Processador QT Proc Core Memoria GB Storage TB Specint Aplicação Utilização % SpecUtilizado Observação
XXX01 E5-2620 v3 @ 2.40GHz 2 4 190 5 519 Dev-DB 45 233.55
XXX02 E5-2620 v3 @ 2.40GHz 2 4 190 519 Dev-DB 48 249.12
XXX03 X5675 @ 3.07GHz 2 10 96 11 383 Oracle-DB 52 199.16
XXX04 X5675 @ 3.07GHz 2 10 96 383 Oracle-DB 46 176.18
XXX05 X5690 @ 3.47GHz 346 GHz 2 4 98 0.335 409 Dev-Portal 26 106.34
XXX06 E5-2620 v2 @ 2.10GHz 210 GHz 2 12 196 18 384 SOA 25 96
XXX07 E5-2620 v2 @ 2.10GHz 210 GHz 2 12 196 384 SOA 25 96
Total 14 56 1062 34.335 2981 1156.35
Processador com
core Desativado
Quantidade de licenças informadas pelo cliente:✓ Aplicação
✓ SOA - 4 Licenças + 20 usuarios do SOA;✓ Web logics - 12 licenças;✓ Portal - 10 licenças;
✓ Banco de Dados✓ 4 Desenvolvimento;✓ 8 Produção;✓ 2 Contigenciatotal 14 licenças;
Comparativo de CPU Aplicação
Comparativo de CPU Banco de Dados
Resultado Aplicação
Resultado banco de dados