Sap Virtual Hana Guide and Road Map
Sap Virtual Hana Guide and Road Map
SAP Basis
BOBJ
CRM
SCM
ERP
• Common certified Architecture – including SAP HANA in
ETC
BW
production on vSphere 5.5
vCenter Operations
DBA
®
• Run simple on VMware anywhere Traditional Databases SAP HANA
OS Adm
vCloud Suite(vMotion, HA, SRM, DRS)
VMware Adm
3rd vSphere (ESX Cluster)
Bus. Party
BA Suite Apps
BW
2
Introducing Production SAP HANA on vSphere 5.5
Automated
Capacity Planning Rapid
Operations
and Optimization Provisioning
Management
>Unify and manage >Live migrate SAP HANA >Deploy SAP HANA
SAP HANA with rest of databases across hosts instances in hours
virtual datacenter in minutes
Virtualization-Aware
Automated Resource High Availability Security and
Allocation Compliance
APP
3
SAP HANA on vSphere 5.5 Delivers Material Value
*EMC IT, 02/14 EMC Perspective, H12853 ** EMC IT internal analysis, ***Taneja Group Research, 2014
SAP HANA Platform on VMware vCloud Suite
Differentiated Solution – Removing the 3 Major Barriers to Database Virtualization
This email should contain: 1. High-level scenario description and timeline (e.g.
planned Go-live date)
2. Expected database size (compressed HANA DB size,
number of users)
3. Hardware spec (HW vendor, server t-shirt size)
4. Planned HA/DR setup (if applicable)
5. Contact details for further communication
All information given will be kept confidential and is only being used during the selection process. Once
accepted, customer will get access to restricted SAP Note, officially stating SAP HANA support for the
presented scenario.
7
SAP HANA Support Summary
Capability Supported in Production Supported in Test/Dev
8
SAP HANA Sizing Deployment
Considerations
9
Columnar and Row (Traditional) Database Stores
Row Store Table: Logical View and Physical Layer
Order # Last Amount Item # … … State
• Row Stores Name
– Store logically related attributes of different types
1024 Smith $257.97 088-3X … … CA
• Sales Orders, Invoices, etc.
– Insert/update to the row store 1025 Jones $1,122.18 215-4B … … NJ
10
Optimization: Tuning Traditional
Analytic Databases (OLAP) Base Table + Materialized Views + Indices
• DBAs Can Minimize Unnecessary Table Scans
– Materialized View; Partitions (Optimization Objects)
• Tables which reside on disk; can contain own indices
• Pre-Joins; updateable manually, scheduled, triggers
– Complex Subject and Management
• Varies by rdbms vendor Row Store
• Data Warehouses contain100’s of reports
– Typically 30% - 90% of total size of database
Base Table – Requires Data Only
• Columnar Does Not Need Optimization Objects
– Works on Data Only
– Higher Degree of Compression
• Ad hoc Queries
– Cannot be optimized; requires pre-knowledge
Column Store
– Ad Hoc/Data Mining no problem for column stores
11
Row to Column Store: Does The Total Databases Size Matter?
• No Indices, Materialized, Partitions The Question is NOT How Big is My Data Warehouse?
– Inserts/Updates faster
– Faster data loads Base Table + Materialized Views + Indices
• No Dropping/Regeneration
– Indexes, temporary tables
– Reduces time to query
• Phantom results
12
Sizing - SAP HANA Scale Up for vSphere
• Use SAP HANA Specific Tools (same as physical) Controlled
SAP HANA Availability
QuickSizer
– The Criteria for sizing RAM Consists of:
- No different than physical
• Memory sizing for column store (compressed data)
- Total RAM <=1TB then OK to virtualize
• Memory sizing for row store - Total RAM >1TB Use ABAP Based Sizing
• Memory sizing for runtime objects
– The Total RAM determines if SAP HANA is a candidate for
virtualization
ABAP Based Sizing
• Ex: SAP QuickSizer for SAP HANA: SAP HANA Non-Active Data Concept
– If Total RAM <=1TB then Deploy on vSphere
• SAP IQ SAP IQ
– Columnar; shared everything Logical Server 1 Logical Server Logical Server 3
2
– Scale up/out architecture
High Speed Interconnect
– Mature product – large install base
– Many VMware customers in production Administration
(DBAs)
3000
• SAP IQ 15.4 validation testing 2500
– Standard x86 servers 2000 VMDK Multiwriter
– EMC® VNX® 5700 FC Unified Storage System 1500 RDM SCSI Sharing
0
Load 1 Power Throughput Power Throughput
(DQP) (DQP)
14
SAP IQ For Warm/Cold Data Management
• SAP HANA Real-Time SAP HANA Dynamic Tiering
– Cutting edge, in-memory platform
– Transact/analyze in real-time
SAP HANA
• IQ Warm/Cold Data Management Hot Data
OS OS OS OS
17
SAP HANA on VMware
Best Practices
18
SAP HANA on vSphere Best Practices Overview
• SAP HANA on vSphere – It just Runs!
– Phase I Performance Testing:
• All performance results were out of the box; no special tuning required
– For the most part SAP HANA follows general published vSphere Best Practices for databases
– Documented General Best Practices and SAP HANA Optimizations
20
Configuring Paravirtual VMware vSphere Web Client
SCSI Controllers
• Paravirtual SCSI (PVSCSI) controllers
– High performance storage controllers
• Greater throughput
• Lower CPU utilization
– Suited for high-performance storage environments
– Use PVSCI for Data and Log devices
– Can be used for OS/Executable – not bootable from SAN VMware vSphere Client
21
Use VMware VMXNET3 Adapter Type/ VMware vSphere Web Client
Virtual Distributed Switch
• VMXNET Optimized Performance in a Virtual Machine
– Operating system vendors do not provide built-in drivers for
this card
– Must install VMware Tools to have a driver for VMXNET
22
Selection Optimal IO Schedulers; Transparent Huge Pages
• Linux IO Schedulers Check IO :Scheduler In Brackets
– Choosing IO scheduler – NOOP, CFQ, or Deadline
# cat /sys/block/sda/queue/scheduler
– Use NOOP Scheduler
[noop] cfq deadline
• Reduce I/O latency and increase
• Reduce CPU time spent re-ordering I/O requests
– Work with system admin to change and make permanent
23
vSphere Low Latency Setting & vSphere Latency Sensitivity
24
NUMA, CPU Affinity, Hyper-threading
• No Over-commitment of CPU resources for SAP HANA production VMs
• SAP HANA has been found to perform optimally with virtual NUMA that
reflects the physical NUMA
– Default behavior of vSphere
– Additional step of using CPU affinity to pin virtual NUMA nodes to physical NUMA nodes improves
performance by preventing any virtual NUMA node migration to different physical NUMA nodes
• vCPUs and Hyper-threading
– Hyper-threading adds a logical thread to each physical core which increases performance by up to 20%
– Best Practice is to have HT enabled
– With HT enabled each Physical Core = 2 logical threads (example – Host with 40 cores has 80 threads)
– vCPU = logical thread
– Important to consider when sizing VMs for HANA and determining how many vCPUs per vNUMA node
– See VMware Best Practices for SAP HANA on vSphere for details.
25
SAP HANA on VMware vSphere Best Practices Guide
• All the best practices are covered in detail in the best practices guide
• http://www.vmware.com/files/pdf/SAP_HANA_on_vmware_vSphere_best_practices_guide.pdf
26
SAP HANA on vSphere
Rapid Deployment and Workload Management
Rapid Deployment of SAP HANA Databases
• VMware Templates and Clones
– A clone is a copy of a virtual machine
– A template is a master copy of a virtual machine
• Used to create many clones
System Tables
– Does not leave VM in phantom state
Code & Stack
VMware Distributed Resource Scheduler (DRS)
• Distributed Resource Scheduler (DRS)
Automated SAP HANA Management
– Align IT infrastructure with business goals
Infrastructure Abstraction
– Dynamic allocation of compute resources
• Managing SAP HANA databases
– Database workloads are both dynamic
and transient Dynamic
Resource
– Directs compute resources where needed
Scheduling
– Maintain database response times
and SLA’s
• DRS Automation Levels
– Manual – recommend initial placement
and migrations
– Partially automated – initial placement
automated; recommend migrations
– Fully automated – automated placement
and migrations
DRS Affinity Rules – Automated Management of SAP HANA VMs
• Use Affinity Rule to Prevent Migrations
– Non-certified servers
– Resulting in unsupported configurations
32
DRS Anti-Affinity Rules – Automated Management Continued..
• Exclusive Resource Rights
– Separate SAP HANA VMs
– Evacuate VMs other that SAP HANA
33
Analytics: Transient and SAP HANA Physical
Temporal Workloads Resources Cannot Be Reclaimed / Redirected
SAP HANA Appliance SAP HANA Appliance
• Many Peaks Valleys – End of Month, Quarter, Year 512GB 512GB
– Resources locked into physical servers SAP HANA SAP HANA
• Cannot be reclaimed; regardless of usage characteristics
“Prod-1” “Prod-2”
• Wasted idle resources after EOM, EOQ, EOY
• SAP HANA
– Highly efficient in-memory processing
– Orders of magnitude faster than traditional databases SAP HANA Multi-VM
Reclaim/Redirect CPU Resources
• SAP HANA on vSphere
– SAP HANA databases can reclaim idle CPU resources 2x 510GB SAP HANA Databases
– More efficient use of physical hardware SAP HANA SAP HANA
• VMware Workload Management “Prod-1” “Prod-2”
– SAP HANA “Prod-1” – heavy EOQ processing
– SAP HANA “Prod-2” – completed EOQ
vSphere 5.5
– Redirect CPU resources to SAP HANA “PROD-1”
• Consolidated workloads “Faster Than Physical”
1TB Certified Server
34
VMware vCenter Operations MP Overview
for SAP HANA – Overview • Exposes SAP HANA related performance, health,
and availability metrics within vC Ops
• Includes out-of-the-box dashboards,
supermetrics, metrics, and metrics collections for
SAP HANA
• Provides visibility into SAP HANA workloads
running on VMware vSphere, bare-metal, and
cloud-based deployments
Benefits
• Enables end-to-end views of SAP HANA,
underlying compute resources, and storage
• Gain enterprise-wide visibility into SAP HANA
workloads
• Greatly reduce troubleshooting times, and
simplify security & compliance management
Demo
SAP HANA integration with vCenter Operations delivers
automated correlation of performance, health, and availability • vMotion SAP HANA – vCenter Operations Suite
data for SAP HANA workloads BlueMedora Performance Dashboards
Migrate Live Databases with Zero Downtime
Live SAP HANA Database Migrations
vMotion Infrastructure Abstraction
36
Automatically Balance Workloads Across Hosts
Automated SAP HANA Management
Infrastructure Abstraction
Distributed Resource Scheduler (DRS)
• Scales and manages computing
resources without service disruption
Dynamic
• Automatically balances workloads Resource
across hosts Scheduling
37
Set User-Defined Rules
• Anti-affinity rules
- Single instance per host
- Migrate non-SAP HANA virtual
machines for end of month
processing from host(s)
• Affinity rules
- Runs only on certified hardware
38
Deploy Instances and Hosts Rapidly
39
Deliver Highest Levels of Uptime
40
Increase Productivity
41
Deployment
Considerations
and Options
CONFIDENTIAL 42
SAP HANA: Relevant vSphere Maximums
Deployment considerations scale up or SAP HANA on VMware
43
SAP HANA Scale Up Model on VMware
44
Sizing — SAP HANA Scale Up for vSphere
• Use SAP HANA Specific Tools (same as physical)
– The Criteria for sizing RAM Consists of: SAP HANA QuickSizer
• Memory sizing for column store (compressed data)
• Memory sizing for row store • No different than physical
• Memory sizing for runtime objects • Total RAM <=1TB then OK to virtualize
• Total RAM >1TB Use ABAP Based Sizing
– The Total RAM determines if SAP HANA is a candidate for
virtualization
• Ex: SAP QuickSizer for SAP HANA:
– If Total RAM <=1TB then Deploy on vSphere
ABAP Based Sizing SAP HANA
• Ex: SAP ABAP Based Sizing Non-Active Data Concept
– SAP Preferred method, much more accurate
– Non-active Data Concept Hot In-memory; with runtime objects
• Hot, Warm, Cold
– SAP HANA with >1TB of RAM can be virtualized
Warm In-memory; no runtime objects
Application
• SAP HANA Server with customer’s SAP
SAP Database
HANA
SAP
preferred storage solution HANA
Server
HANA
Operation System
Serve
- Same BOM as the certified appliance Serve
r
Virtualization
46