You are on page 1of 19

SAP HANA – Architecture

Deployment Best Practice for SAP HANA


Active Global Support, SAP AG – 2015
Deployment Best Practices for SAP HANA
Fundamentals support.sap.com/dbp4hana

Fundamentals Architecture Transition Operations

 HANA Technology  Sizing  Rapid Prototyping  SAP HANA Administration


 Data Warehouse & Data  Technical Infrastructure  One-Step Migration  E2E Monitoring &
Management  Non-Productive  In-Memory Optimization Guided Procedures
 SAP Business Suite System Landscape  Custom Code Optimization  E2E Performance
powered by SAP HANA  Integration Services  Data Model Optimization Expert Analysis
 SAP HANA Supportability  Application Services  E2E Change Control
 Test Management
and Operational Tools Management
 Data Volume Management
 SAP HANA Security
 Supportability Setup

Expert Guidance - Meet the expert sessions & Expert Guided Implementations

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 2
SAP HANA Platform - More than just a database
SAP HANA Platform converges Database, Data Processing, Application and Integration Services

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 3
Technical Infrastructure for SAP HANA
Technology Layers in SAP HANA
Application • Any

Database • SAP HANA

OS • SUSE/SLES, Red Hat RHEL


SAP
HANA
• VMware / Hiatchi LAPR / HP nPAR / Fujitsu
Virtualization
PPAR IBM Power VM (dedicated LPAR)

Server • CPU type: Intel E7 with up to 15 TB RAM


Intel E5 with up to 1.5 TB RAM System
IBM Power8 with up to 3 TB RAM

Network • Client Zone / Internal Zone / Storage Zone

Storage • Storage integrated into appliance


• Enterprise storage via Tailored Data Center
Integration
© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 4
SAP HANA On-Premise
Choose the right deployment option

Appliance Tailored Data Center


Integration
SAP HANA System SAP HANA System

Software Software Software Software Software Software


Server Server Server Server Server Server
Network Network Network Network Network Network
Storage Storage Storage Storage Storage Storage
Node 1 Node 2 Node n Node 1 Node 2 Node n

All in one box by certified partners Choice of components that meet SAP
(850+ configurations – 128 GB to 12 TB) requirements from different vendors

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 5
Storage tiers of a SAP HANA big data platform
First guidance – when to use what?

Data In Memory RAM displacement Dynamic tiering Hadoop/archive/NLS


Operationally required Only used by SAP applications SAP Applications and External Enterprise data
Data customer projects repository
Historical data (SoH)  Low-cost store
Infrequently accessed data Data properties same as for
 Commodity hardware
Current Data (BW) RAM-displacement
Relaxed availability and
Same SLAs as for in-memory Aging-like functionality for
performance SLAs
data HANA native scenarios
Frequently accessed Data Activate massive volume of
No infrastructure change Same SLAs as for in-memory
data
required data
Archive or to add a data lake
Limited scalability Scales independent from
to a HANA application
SAP HANA HANA hardware
SAP HANA
(Main
Memory)
SAP HANA
HANA DT
Data RAM
file

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 6
Distributed In-memory computing architecture
Integration of SAP data with data lakes and SAP HANA connectivity on Hadoop

Embracing Hadoop as a Core Technology

Spark Spark Spark

SAP HANA Vora Vora Vora

YARN
Data Processing Engines

SQL Optimizer / Executor


Files Files Files HDFS

In-Memory
Store

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 7
General Sizing Introduction
Overview and Procedure

Determine basic Project size for Relate system sizes Project disk space Size application layer,
database size hardware planning to possible hardware for TDI (optional) non-PRD systems

Sizing guidelines Check table sizes and Group systems Disk sizing: use Application layer
 New systems possible effects of  Single (physical) formulas for  Consider growth
 Data archiving systems  Installation
Sizing reports  Housekeeping  System clusters (MDC,  Data volume
Non-PRD
 Suite on HANA virtual)  Log size depends on  PRE, QAS, DEV, SBX
 BW on HANA Set target year for individual system size,  HA/DR
sizing projection Assess appropriate go- maximum is 512 GB  Temporary systems
Sizing formulas  Year-on-year growth live hardware in view of
 Backup
 Enterprise Portal planned growth Landscape systems
Network sizing: follow
 SAP Mobile Platform Include other impacts  Extensions are possible SAP recommendations  SLT, others
 Process Orchestration  Additional functionality Check CPU With this step you first need
 Custom reporting (e.g. requirements to determine the net
Manual sizing HANA Live)  Simple cross-check requirements and then
assess how systems can
 Carve-outs (e.g. HR)  Additional business initially be mapped (e.g. stacked)
units on actual hardware. There
These two steps are very important and belong is no “one size fits all”
together – they unite projection and reality check guideline

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 8
SAP HANA Database Deployment
Deployment Options 1 of 2 - Details
1 – Dedicated 2 – Physical Part. 3 – MDC 4 – MCOD 5 – Virtualized 6 – MCOS

SAP SAP SAP SAP SAP SAP SAP SAP SAP SAP SAP SAP
System 1 System 2 System 1 System 2 System 1 System 2 System 1 System 2 System 1 System 2 System 1 System 2

DB DB DB DB DB DB DB DB DB DB DB DB
Schema Schema Schema Schema Schema Schema Schema Schema Schema Schema Schema Schema

DB DB
Tenant Tenant

SAP HANA SAP HANA SAP HANA SAP HANA SAP HANA SAP HANA SAP HANA SAP HANA SAP HANA SAP HANA

VM + OS VM + OS

Hypervisor
OS + OS + OS + HW OS + HW
Partition Partition OS + Hardware OS + Hardware OS + Hardware
Server Server
Server
Hardware

Storage Storage Storage Storage Storage Storage

Storage

Production Production (with restrictions) Non-Prod. only


© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 9
Co-Deployment / Hardware Reuse Patterns
Deployment Options 2 of 2 - Details
1 – Dedicated 2 – Physical Part. 3 – MDC 4 – MCOD 5 – Virtualized 6 – MCOS

“Classical“ scenario Physical Server “MDC” “MCOD” Virtualization “MCOS”


Appliance approach Partitioning Multitenant Database Multiple Components VMware virtualization Multiple Components
for optimal Server is physically Containers on one Database technology. on one System
performance split into fractions. No n x Hardware + OS 1 x Hardware + OS Hitachi LPAR 1 x Hardware + OS
1 x Hardware + OS Performance impact
1 x HANA DB 1 x HANA DB Separate OS images n x HANA DB
1 x HANA DB 1 x Hardware each containing one n x DB schema
1 x System DB n x DB schema
1 x DB schema 2 x HW partitions + Container HANA DB
OS n x Applications n x Applications
1 x Application n x Tenant DB 1 x Hardware
2 x HANA DB Productive usage for E.g. DEV and QA
(e.g. ERP, CRM or Containers white listed scenarios n x VM + OS system on one
BW) 2 x DB schema n x Application only. n x HANA DB hardware.
2 x Application Productive usage See notes 1661202 n x DB schema See note 1681092.
(e.g. ERP, CRM or and 1826100.
BW) See note 2096000 n x Applications

See note 2077823 HANA on


Virtualization see
note 1788665.

Production Production (with restrictions) Non-Prod. only


© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 10
SAP HANA Platform
Comprehensive data integration solutions

Data Movement
Any Source Over Networks Transform and Persist Data Report on Data
Real Time SAP Landscape Transformation
SAP Business Suite
Trigger-Based Replication Server
SAP HANA
Real Time SAP
Non-SAP Data Sources
Log-Based Replication Server
Tables Virtual Tables

Batch
Cloud Sources SAP Data Services

Complex Event Event Streams SAP Event Stream


Data Source Processing

Data Synchronization
Network Devices SAP SQL Anywhere
– Wired / Wireless

Data Sources Data Federation SAP HANA


(HANA, IQ, ASE, Hadoop, etc…) smart data access

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 11
SAP LT Replication Server
Technical Enabler for Multiple Data Provisioning Use Cases

SAP LT Replication Server for SAP HANA SAP LT Replication Server for SAP BW

Integrated with SAP HANA Studio Real-time Data Acquisition for SAP BW
(also used by HANA RDS Solutions)

Replication Engine for SAP HANA


Application Accelerators SAP LT Replication Server for other targets
(on project basis only)

Any DB

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 12
Smart Data Access (Data Virtualization) with SAP HANA

Expose data from Remote Sources as Virtual


Tables

Use Cases:
 Customers can access IQ as an archived storage to
store cold data in IQ and real time hot data in SAP
HANA
 Address Big Data challenges by connecting to Hadoop
using the Hive interface
 Create Applications by running HANA models across
disparate data sources

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 13
SAP HANA Platform
Simplification through native data integration solutions

Any Source Move, Transform, and Persist Data Analyze Data

Federation/Batch/Real Time
SAP Business Suite

Non-SAP Data Sources


Federation/Batch/Real Time SAP HANA

Data Provisioning
Federation/Batch/Real Time Tables Virtual Tables
Cloud Sources

Data Distribution
Event Streams
Complex Event Distribute Data
Data Source
SAP & Non-SAP Data Sources
Data Synchronization
Network Devices (HANA, ASE, File, etc…)
– Wired / Wireless

Data Sources Data Federation


(HANA, IQ, ASE, Hadoop, etc…)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 14
Application development on SAP HANA
Choices of application architecture

SAP Business Suite Custom Applications Native SAP HANA Custom


Applications

SAP NetWeaver
Application Server - ABAP Application Server
Core Data Services (CDS)
(J2EE, .NET)

SAP HANA Platform SAP HANA Platform SAP HANA Platform


Application Services

Database Services Database Services Database Services

Integration Services Integration Services Integration Services

 ABAP developers use CDS and Open SQL to leverage SAP HANA without coding SAP HANA objects
 Custom application developers choose any application server and any database interface
 SAP HANA native application developers use SAP HANA application services inside the platform

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 15
Database-centric Optimizations
ABAP managed code pushdown
Released innovations

Exploit SAP HANA


Advanced SQL native features
programming  ABAP managed
Reuse  Open SQL database procedures
components  Advanced view  CDS table functions
building with Core via ABAP managed
 ALV with integrated database functions *
Transparent data access Data Services (CDS)
 Native SQL , ADBC
optimizations  Enhanced search
help
 Fast Data Access
 …
 Table Buffer

(low) Use all benefits of SAP HANA (high)


* Introduced with ABAP 7.5

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 16
SAP HANA View Modeling (1/2)
General Performance Guidelines
Avoid transfer data of large result sets between the HANA DB and client
application

Client A G Y Z
Do calculation after aggregation
Avoid Complex expressions, instead push down into model

Aggregate data records (e.g using GROUP BY,


A G Y
reducing Columns)
Calculation Views
Join on Key Columns or Indexed Columns
Procedures / Functions A B C D G Y

Avoid calculations before aggregation


on line item level
Replace sequential cursor looping with
A B C
set processing
A B C

A B C Filter data amount as early as possible in


Column the lower layers (e.g using Constraints,
WHERE clause filters, Analytical
Privileges, Partitioning)
Store

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 17
SAP HANA View Modeling (2/2)
Performance Analysis & Query Insight Tools
Timeline – root cause analysis
Visualize Plan

Operator list

Calculation View
Debugger

Explain Plan

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 18
© 2015 SAP SE or an SAP affiliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.
The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

National product specifications may vary.

These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and
SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth
in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and
other countries.

Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Deployment Best Practices for SAP HANA 19

You might also like