SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
1© 2014 SAP AG or an SAP affiliate company. All rights reserved.
SAP HANA SPS 10 - What’s New?
Workload Management
SAP HANA Product Management June, 2015
(Delta from SPS 09 to SPS 10)
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 2Public
Agenda
Introducing HANA Workload-Management
 Workload Types in HANA
 Statement Execution and Resource Handling
Controlling resources in the HANA system (as of SPS09)
 CPU consumption and CPU binding
 Memory allocation
 Prioritization
Workload Classes
 Usage of Workload Classes
 Administration and Monitoring of Workload Classes
 Mapping of Workload Classes
Demo
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 3Public
Workload Types in HANA
Workload Types
OLAP Workload OLTP Workload Mixed Workload Internal Workload
 complex statements
 long-running
 mostly CPU-intensive, mostly
memory-intensive
 e.g. reporting in Datawarehouse
systems
 simple statements
 short-running
 mostly less CPU-intensive,
less memory-intensive
 e.g. transactions in ERP
systems
 OLAP + OLTP
 e. g. modern ERP systems,
with transactional and analytical
reporting
 housekeeping + admin tasks
 could be CPU-intensive,
memory-intensive
 e.g. merge, garbage collection,
backup, savepoint
Balance and manage all workload types in HANA for best response time and throughput based on customer needs !
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 4Public
Statement Execution and Resource Handling
Session Layer
Execution
Plan
“statement”
“(simple) OLTP”
Jobs
“may delegate statement execution”
SQLExecutor
Thread-Pool
“HANA system-tasks”
Thread-Pool
“assign available threads”
“assign available threads”
Application A
JobExecutor
“(complex) OLAP”
OP
OP
OP
Session Context for Application A
“set statement-context
per session“
Information about resource policy for memory, concurrency, priority for a statement
“read config data”“
.ini files
system-tables
Plan
Operators
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 5Public
Controlling resources in the HANA system (as of SPS09)
CPU resources
• [indexserver.ini] max_sql_executors controls the max #of parallel threads that can be used for simple (OLTP-) statements
• [indexserver.ini] max_concurrency controls the max #of parallel threads executing jobs for complex (OLAP-) statements
note: the max #of parallel threads can be exceeded in some situations in the HANA systems, due to internal reasons
• [daemon.ini] affinity-parameter assigns CPU-resources per HANA process
Memory allocation
• [indexserver.ini] statement_memory_limit controls the memory consumption of statements ( can be altered per db-user manually)
Execution priority (available with SPS09)
• ALTER USER SYSTEM SET PARAMETER PRIORITY = <prio>
• sets user-level priority for all statements in the current connection between 0 …9 (default: 5)
.ini-parameters control resource management of the complete HANA-DB
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 6Public
Introducing Workload Classes
Datamart-App
Administrator Tasks:
• create workload classes
• create workload mapping
ERP-App, App_Name “MRP”
ERP-App, App_Name “MyDashboard”
DB-user “DATAM”
DB-user “ERP001”
DB-user “ERP001”
HANA System
Workload “DATAM”session-context
session-context
session-context Workload “BW”
resource-config
resource-config
Workload “MRP”
resource-config
Workload “MYDASH”
resource-config
statm-context
statm-context
statm-context
mapping
mapping
mapping
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 7Public
Administrating Workload Classes
Step 1: Create Workload Class (WORKLOAD_CLASSES)
 Create a workload class in the HANA Studio SQL console with the following resource properties:
– statement_thread_limit = max #of parallel threads to execute a statement
– statement_memory _limit = max #of memory allocated per statement
– statement_priority = execution priority for a statement
 You can set all resource properties or only a subset
 SQL Syntax: <CREATE|ALTER|DROP> WORKLOAD CLASS <NAME> [SET <PROPERTY LIST>]
 Example: create workload class "MRP" set 'PRIORITY' = '6', 'STATEMENT MEMORY LIMIT' = '2' , 'STATEMENT THREAD LIMIT' = '20'
Step 2: Create Workload Mapping (WORKLOAD_MAPPINGS)
 Create workload mapping based on client context information (‘ClientInfo object’ sent by the HANA application):
– Client = client number (usually applied by SAP ABAP applications, like SAP Business Suite / BW)
– Application Name = name of the application
– Application User Name = name of the application user (usually the user logged into the application)
– User Name = name of the db-user (the HANA user, where the application is connected technically with)
 SQL Syntax: <CREATE|ALTER|DROP> WORKLOAD MAPPING <NAME> WORKLOAD CLASS <WC NAME> [SET <PROPERTY LIST>]
 Example: create workload mapping "MRPCLIENT" workload class "MRP" set 'USER NAME' = 'ERP001', 'APPLICATION NAME' = 'MRP';
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 8Public
Monitoring Views for Workload Classes
 SYS.M_CONNECTIONS
 SYS.M_PREPARED_STATEMENTS; SYS.M_ACTIVE_STATEMENTS
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 9Public
Mapping of Workload Classes
Mapping of Workload Classes
 Always the most specific workload class is mapped to a db-client
 If no workload class can be mapped, the internal default values or .ini-parameter of the HANA-db are applied (default)
– statement_thread_limit => [internal default value] ‘0’  no limit
– statement_memory_limit => [.ini] statement_memory_limit
– statement_priority => [internal default value] ‘5’
 If a workload class has only a subset of the resource properties defined, the internal default values or .ini parameter-values are applied for the remaining properties
Client
WCLERP
WCLALF
APPLICATION_USER_NAME = ‘ALF’
USER_NAME = ‘ERP001’
APPLICATION_USER_NAME = ‘ALF’
CLIENT = ‘001’
APPICATION_NAME = ‘MRP’
USER_NAME = ‘ERP001’
CLIENT = ‘001’
APPICATION_NAME = ‘MRP’
USER_NAME = ‘ERP001’
Mapping
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 10Public
Mapping of Workload Classes
Priority of ClientInfo properties for mapping
 If two workload classes have the same matching number of ClientInfo properties, the workload class is applied that matches properties with
higher priority
 There is the following priority:
1. Application_User_Name
2. Client
3. Application_Name
4. User_Name
Client
WCLERP
WCLALF
APPLICATION_USER_NAME = ‘ALF’
CLIENT = ‘001’
APPICATION_NAME = ‘MRP’
USER_NAME = ‘ERP001’
CLIENT = ‘001’
APPICATION_NAME = ‘MRP’
USER_NAME = ‘ERP001’
APPLICATION_USER_NAME = ‘ALF’
APPICATION_NAME = ‘MRP’
USER_NAME = ‘ERP001’
Mapping
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 11Public
Additional Remarks
Privileges
 Managing workload classes requires the ‘WORKLOAD ADMIN’ privilege
Changing Workload Classes
 Changes of workload classes or mappings will only be applied, if a (connected) db-client re-connects
 You can change the running session-context of a connected db-client via SQL-command ‘ALTER SYSTEM ALTER SESSION SET'
Multi-Database Containers (MDC)
 Workload classes work also in a multi-database environment, but you need to define workload classes for each single db-container
Scale-out
 Workload classes are applied to the complete HANA-db in a scale-out environment, but not to each single node
Dropping users / workload classes
 If you drop a user in the HANA-db, all related workload classes are dropped
 If you drop a workload class, the related mappings are dropped
Setting the ClientInfo in the application
 The client info is a list of property values pairs that an application can set in in the client interface
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 12Public
DEMO
© 2015 SAP SE or an SAP affiliate company. All rights reserved. 13Public
Disclaimer
This presentation outlines our general product direction and should not be relied on in making
a purchase decision. This presentation is not subject to your license agreement or any other
agreement with SAP.
SAP has no obligation to pursue any course of business outlined in this presentation or to
develop or release any functionality mentioned in this presentation. This presentation and
SAP’s strategy and possible future developments are subject to change and may be changed
by SAP at any time for any reason without notice.
This document is provided without a warranty of any kind, either express or implied, including
but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or
non-infringement. SAP assumes no responsibility for errors or omissions in this document,
except if such damages were caused by SAP intentionally or grossly negligent.
© 2015 SAP SE or an SAP affiliate company. All rights reserved.
Thank you
Contact information
Rüdiger Karl
SAP HANA Product Management
AskSAPHANA@sap.com

Weitere ähnliche Inhalte

Was ist angesagt?

Data Governance als Schlüsselfaktor für Ihr Stammdatenmanagement
Data Governance als Schlüsselfaktor für Ihr StammdatenmanagementData Governance als Schlüsselfaktor für Ihr Stammdatenmanagement
Data Governance als Schlüsselfaktor für Ihr Stammdatenmanagement
IBsolution GmbH
 
MDM Strategy & Roadmap
MDM Strategy & RoadmapMDM Strategy & Roadmap
MDM Strategy & Roadmap
victorlbrown
 
Cloud Computing Roadmap Public Vs Private Vs Hybrid And SaaS Vs PaaS Vs IaaS ...
Cloud Computing Roadmap Public Vs Private Vs Hybrid And SaaS Vs PaaS Vs IaaS ...Cloud Computing Roadmap Public Vs Private Vs Hybrid And SaaS Vs PaaS Vs IaaS ...
Cloud Computing Roadmap Public Vs Private Vs Hybrid And SaaS Vs PaaS Vs IaaS ...
SlideTeam
 

Was ist angesagt? (20)

How to build a successful Data Lake
How to build a successful Data LakeHow to build a successful Data Lake
How to build a successful Data Lake
 
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
 
080827 abramson inmon vs kimball
080827 abramson   inmon vs kimball080827 abramson   inmon vs kimball
080827 abramson inmon vs kimball
 
SAP S/4HANA: Finance Capability and Frequently Asked Questions
SAP S/4HANA: Finance Capability and Frequently Asked QuestionsSAP S/4HANA: Finance Capability and Frequently Asked Questions
SAP S/4HANA: Finance Capability and Frequently Asked Questions
 
AWS Empowering Digital Marketing with the AWS Cloud
AWS Empowering Digital Marketing with the AWS Cloud AWS Empowering Digital Marketing with the AWS Cloud
AWS Empowering Digital Marketing with the AWS Cloud
 
Logical Data Warehouse and Data Lakes
Logical Data Warehouse and Data Lakes Logical Data Warehouse and Data Lakes
Logical Data Warehouse and Data Lakes
 
Data Governance als Schlüsselfaktor für Ihr Stammdatenmanagement
Data Governance als Schlüsselfaktor für Ihr StammdatenmanagementData Governance als Schlüsselfaktor für Ihr Stammdatenmanagement
Data Governance als Schlüsselfaktor für Ihr Stammdatenmanagement
 
Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020
 
MDM Strategy & Roadmap
MDM Strategy & RoadmapMDM Strategy & Roadmap
MDM Strategy & Roadmap
 
Enterprise Data Management Framework Overview
Enterprise Data Management Framework OverviewEnterprise Data Management Framework Overview
Enterprise Data Management Framework Overview
 
Big Table, H base, Dynamo, Dynamo DB Lecture
Big Table, H base, Dynamo, Dynamo DB LectureBig Table, H base, Dynamo, Dynamo DB Lecture
Big Table, H base, Dynamo, Dynamo DB Lecture
 
Data Led Migration
Data Led Migration Data Led Migration
Data Led Migration
 
Cloud platform technical sales presentation
Cloud platform technical sales presentationCloud platform technical sales presentation
Cloud platform technical sales presentation
 
Handling PII and sensitive content in SAP BusinessObjects
Handling PII and sensitive content in SAP BusinessObjects Handling PII and sensitive content in SAP BusinessObjects
Handling PII and sensitive content in SAP BusinessObjects
 
DevOps + DataOps = Digital Transformation
DevOps + DataOps = Digital Transformation DevOps + DataOps = Digital Transformation
DevOps + DataOps = Digital Transformation
 
The Power Of The Partner Ecosystem
The Power Of The Partner EcosystemThe Power Of The Partner Ecosystem
The Power Of The Partner Ecosystem
 
Cloud Computing Roadmap Public Vs Private Vs Hybrid And SaaS Vs PaaS Vs IaaS ...
Cloud Computing Roadmap Public Vs Private Vs Hybrid And SaaS Vs PaaS Vs IaaS ...Cloud Computing Roadmap Public Vs Private Vs Hybrid And SaaS Vs PaaS Vs IaaS ...
Cloud Computing Roadmap Public Vs Private Vs Hybrid And SaaS Vs PaaS Vs IaaS ...
 
Data stewardship
Data stewardshipData stewardship
Data stewardship
 
Intro to Data Vault 2.0 on Snowflake
Intro to Data Vault 2.0 on SnowflakeIntro to Data Vault 2.0 on Snowflake
Intro to Data Vault 2.0 on Snowflake
 
Building a Federated Data Directory Platform for Public Health
Building a Federated Data Directory Platform for Public HealthBuilding a Federated Data Directory Platform for Public Health
Building a Federated Data Directory Platform for Public Health
 

Andere mochten auch

Andere mochten auch (20)

What's new on SAP HANA Workload Management
What's new on SAP HANA Workload ManagementWhat's new on SAP HANA Workload Management
What's new on SAP HANA Workload Management
 
SAP HANA SPS09- Administration Monitoring
SAP HANA SPS09- Administration MonitoringSAP HANA SPS09- Administration Monitoring
SAP HANA SPS09- Administration Monitoring
 
SAP HANA SPS1- SAP HANA Hardware Platforms
SAP HANA SPS1- SAP HANA Hardware PlatformsSAP HANA SPS1- SAP HANA Hardware Platforms
SAP HANA SPS1- SAP HANA Hardware Platforms
 
What's New for SAP HANA Smart Data Integration & Smart Data Quality
What's New for SAP HANA Smart Data Integration & Smart Data QualityWhat's New for SAP HANA Smart Data Integration & Smart Data Quality
What's New for SAP HANA Smart Data Integration & Smart Data Quality
 
SQLAnywhere 16.0 and Odata
SQLAnywhere 16.0 and OdataSQLAnywhere 16.0 and Odata
SQLAnywhere 16.0 and Odata
 
SAP HANA SPS09 - Development Tools
SAP HANA SPS09 - Development ToolsSAP HANA SPS09 - Development Tools
SAP HANA SPS09 - Development Tools
 
Synchronizing Data in SAP HANA Using SAP SQL Anywhere
Synchronizing Data in SAP HANA Using SAP SQL AnywhereSynchronizing Data in SAP HANA Using SAP SQL Anywhere
Synchronizing Data in SAP HANA Using SAP SQL Anywhere
 
SAP HANA SPS09 - Dynamic Tiering
SAP HANA SPS09 - Dynamic TieringSAP HANA SPS09 - Dynamic Tiering
SAP HANA SPS09 - Dynamic Tiering
 
What's New in SAP HANA SPS 11 Mission Critical Data Center Operations
What's New in SAP HANA SPS 11 Mission Critical Data Center OperationsWhat's New in SAP HANA SPS 11 Mission Critical Data Center Operations
What's New in SAP HANA SPS 11 Mission Critical Data Center Operations
 
SAP HANA SPS10- Extended Application Services (XS) Programming Model
SAP HANA SPS10- Extended Application Services (XS) Programming ModelSAP HANA SPS10- Extended Application Services (XS) Programming Model
SAP HANA SPS10- Extended Application Services (XS) Programming Model
 
What's Planned for SAP HANA SPS10
What's Planned for SAP HANA SPS10What's Planned for SAP HANA SPS10
What's Planned for SAP HANA SPS10
 
SAP HANA SPS10- Hadoop Integration
SAP HANA SPS10- Hadoop IntegrationSAP HANA SPS10- Hadoop Integration
SAP HANA SPS10- Hadoop Integration
 
What's New in SAP HANA SPS 11 Application Lifecycle Management
What's New in SAP HANA SPS 11 Application Lifecycle ManagementWhat's New in SAP HANA SPS 11 Application Lifecycle Management
What's New in SAP HANA SPS 11 Application Lifecycle Management
 
What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)
 
SAP HANA SPS10- SAP HANA Dynamic Tiering
SAP HANA SPS10- SAP HANA Dynamic TieringSAP HANA SPS10- SAP HANA Dynamic Tiering
SAP HANA SPS10- SAP HANA Dynamic Tiering
 
SAP HANA SPS10- Enterprise Information Management
SAP HANA SPS10- Enterprise Information ManagementSAP HANA SPS10- Enterprise Information Management
SAP HANA SPS10- Enterprise Information Management
 
Deployment and Development approaches for the ISV using PowerBuilder and SQL ...
Deployment and Development approaches for the ISV using PowerBuilder and SQL ...Deployment and Development approaches for the ISV using PowerBuilder and SQL ...
Deployment and Development approaches for the ISV using PowerBuilder and SQL ...
 
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
Building ISV Applications that run in the cloud with SQL Anywhere On-Demand E...
 
Maximizing Database Tuning in SAP SQL Anywhere
Maximizing Database Tuning in SAP SQL AnywhereMaximizing Database Tuning in SAP SQL Anywhere
Maximizing Database Tuning in SAP SQL Anywhere
 
SQL Anywhere Tips and Tricks
SQL Anywhere Tips and TricksSQL Anywhere Tips and Tricks
SQL Anywhere Tips and Tricks
 

Ähnlich wie SAP HANA SPS10- Workload Management

Ähnlich wie SAP HANA SPS10- Workload Management (20)

What's New in SAP HANA SPS 11 Operations
What's New in SAP HANA SPS 11 OperationsWhat's New in SAP HANA SPS 11 Operations
What's New in SAP HANA SPS 11 Operations
 
SAP HANA SPS09 - SAP HANA Workload Management
SAP HANA SPS09 - SAP HANA Workload ManagementSAP HANA SPS09 - SAP HANA Workload Management
SAP HANA SPS09 - SAP HANA Workload Management
 
SAP HANA SPS09 - Security
SAP HANA SPS09 - SecuritySAP HANA SPS09 - Security
SAP HANA SPS09 - Security
 
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
What's New in SAP HANA SPS 11 Platform Lifecycle Management (Operations)
 
SAP_SLT_Guide_21122015.pdf
SAP_SLT_Guide_21122015.pdfSAP_SLT_Guide_21122015.pdf
SAP_SLT_Guide_21122015.pdf
 
Asset accounting
Asset accountingAsset accounting
Asset accounting
 
Itm110 how does sap solution manager support sap hana
Itm110 how does sap solution manager support sap hanaItm110 how does sap solution manager support sap hana
Itm110 how does sap solution manager support sap hana
 
SAP ARCHITECTURE (I).pptx
SAP ARCHITECTURE (I).pptxSAP ARCHITECTURE (I).pptx
SAP ARCHITECTURE (I).pptx
 
SAP HANA SPS08 Administration & Monitoring
SAP HANA SPS08 Administration & MonitoringSAP HANA SPS08 Administration & Monitoring
SAP HANA SPS08 Administration & Monitoring
 
SAP HANA SPS10- Multitenant Database Containers
SAP HANA SPS10- Multitenant Database ContainersSAP HANA SPS10- Multitenant Database Containers
SAP HANA SPS10- Multitenant Database Containers
 
What's New in SAP HANA SPS 11 Backup and Recovery (Operations)
What's New in SAP HANA SPS 11 Backup and Recovery (Operations)What's New in SAP HANA SPS 11 Backup and Recovery (Operations)
What's New in SAP HANA SPS 11 Backup and Recovery (Operations)
 
Best Practice for Supercharging CA Workload Automation dSeries (DE) for Optim...
Best Practice for Supercharging CA Workload Automation dSeries (DE) for Optim...Best Practice for Supercharging CA Workload Automation dSeries (DE) for Optim...
Best Practice for Supercharging CA Workload Automation dSeries (DE) for Optim...
 
SAP HANA SPS10- Scale-Out, High Availability and Disaster Recovery
SAP HANA SPS10- Scale-Out, High Availability and Disaster RecoverySAP HANA SPS10- Scale-Out, High Availability and Disaster Recovery
SAP HANA SPS10- Scale-Out, High Availability and Disaster Recovery
 
SAP HANA SPS10- SAP HANA Platform Lifecycle Management
SAP HANA SPS10- SAP HANA Platform Lifecycle ManagementSAP HANA SPS10- SAP HANA Platform Lifecycle Management
SAP HANA SPS10- SAP HANA Platform Lifecycle Management
 
SAP HANA SPS10- SQLScript
SAP HANA SPS10- SQLScriptSAP HANA SPS10- SQLScript
SAP HANA SPS10- SQLScript
 
SAP HANA Accelerator for SAP ASE
SAP HANA Accelerator for SAP ASESAP HANA Accelerator for SAP ASE
SAP HANA Accelerator for SAP ASE
 
What is Sap HANA Convista Consulting Asia.pdf
What is Sap HANA Convista Consulting Asia.pdfWhat is Sap HANA Convista Consulting Asia.pdf
What is Sap HANA Convista Consulting Asia.pdf
 
DMM161 HANA_MODELING_2015
DMM161 HANA_MODELING_2015DMM161 HANA_MODELING_2015
DMM161 HANA_MODELING_2015
 
Dev207 berlin
Dev207 berlinDev207 berlin
Dev207 berlin
 
Sap enhancement packages
Sap enhancement packagesSap enhancement packages
Sap enhancement packages
 

Mehr von SAP Technology

Mehr von SAP Technology (20)

SAP Integration Suite L1
SAP Integration Suite L1SAP Integration Suite L1
SAP Integration Suite L1
 
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
Future-Proof Your Business Processes by Automating SAP S/4HANA processes with...
 
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
7 Top Reasons to Automate Processes with SAP Intelligent Robotic Processes Au...
 
Extend SAP S/4HANA to deliver real-time intelligent processes
Extend SAP S/4HANA to deliver real-time intelligent processesExtend SAP S/4HANA to deliver real-time intelligent processes
Extend SAP S/4HANA to deliver real-time intelligent processes
 
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
Process optimization and automation for SAP S/4HANA with SAP’s Business Techn...
 
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology PlatformAccelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
Accelerate your journey to SAP S/4HANA with SAP’s Business Technology Platform
 
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
Accelerate Your Move to an Intelligent Enterprise with SAP Cloud Platform and...
 
Transform your business with intelligent insights and SAP S/4HANA
Transform your business with intelligent insights and SAP S/4HANATransform your business with intelligent insights and SAP S/4HANA
Transform your business with intelligent insights and SAP S/4HANA
 
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
SAP Cloud Platform for SAP S/4HANA: Accelerate your move to an Intelligent En...
 
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
Innovate collaborative applications with SAP Jam Collaboration & SAP Cloud Pl...
 
The IoT Imperative for Consumer Products
The IoT Imperative for Consumer ProductsThe IoT Imperative for Consumer Products
The IoT Imperative for Consumer Products
 
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
The IoT Imperative for Discrete Manufacturers - Automotive, Aerospace & Defen...
 
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
IoT is Enabling a New Era of Shareholder Value in Energy and Natural Resource...
 
The IoT Imperative in Government and Healthcare
The IoT Imperative in Government and HealthcareThe IoT Imperative in Government and Healthcare
The IoT Imperative in Government and Healthcare
 
SAP S/4HANA Finance and the Digital Core
SAP S/4HANA Finance and the Digital CoreSAP S/4HANA Finance and the Digital Core
SAP S/4HANA Finance and the Digital Core
 
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANAFive Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
 
SAP Helps Reduce Silos Between Business and Spatial Data
SAP Helps Reduce Silos Between Business and Spatial DataSAP Helps Reduce Silos Between Business and Spatial Data
SAP Helps Reduce Silos Between Business and Spatial Data
 
Why SAP HANA?
Why SAP HANA?Why SAP HANA?
Why SAP HANA?
 
Spotlight on Financial Services with Calypso and SAP ASE
Spotlight on Financial Services with Calypso and SAP ASESpotlight on Financial Services with Calypso and SAP ASE
Spotlight on Financial Services with Calypso and SAP ASE
 
SAP ASE 16 SP02 Performance Features
SAP ASE 16 SP02 Performance FeaturesSAP ASE 16 SP02 Performance Features
SAP ASE 16 SP02 Performance Features
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

SAP HANA SPS10- Workload Management

  • 1. 1© 2014 SAP AG or an SAP affiliate company. All rights reserved. SAP HANA SPS 10 - What’s New? Workload Management SAP HANA Product Management June, 2015 (Delta from SPS 09 to SPS 10)
  • 2. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 2Public Agenda Introducing HANA Workload-Management  Workload Types in HANA  Statement Execution and Resource Handling Controlling resources in the HANA system (as of SPS09)  CPU consumption and CPU binding  Memory allocation  Prioritization Workload Classes  Usage of Workload Classes  Administration and Monitoring of Workload Classes  Mapping of Workload Classes Demo
  • 3. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 3Public Workload Types in HANA Workload Types OLAP Workload OLTP Workload Mixed Workload Internal Workload  complex statements  long-running  mostly CPU-intensive, mostly memory-intensive  e.g. reporting in Datawarehouse systems  simple statements  short-running  mostly less CPU-intensive, less memory-intensive  e.g. transactions in ERP systems  OLAP + OLTP  e. g. modern ERP systems, with transactional and analytical reporting  housekeeping + admin tasks  could be CPU-intensive, memory-intensive  e.g. merge, garbage collection, backup, savepoint Balance and manage all workload types in HANA for best response time and throughput based on customer needs !
  • 4. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 4Public Statement Execution and Resource Handling Session Layer Execution Plan “statement” “(simple) OLTP” Jobs “may delegate statement execution” SQLExecutor Thread-Pool “HANA system-tasks” Thread-Pool “assign available threads” “assign available threads” Application A JobExecutor “(complex) OLAP” OP OP OP Session Context for Application A “set statement-context per session“ Information about resource policy for memory, concurrency, priority for a statement “read config data”“ .ini files system-tables Plan Operators
  • 5. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 5Public Controlling resources in the HANA system (as of SPS09) CPU resources • [indexserver.ini] max_sql_executors controls the max #of parallel threads that can be used for simple (OLTP-) statements • [indexserver.ini] max_concurrency controls the max #of parallel threads executing jobs for complex (OLAP-) statements note: the max #of parallel threads can be exceeded in some situations in the HANA systems, due to internal reasons • [daemon.ini] affinity-parameter assigns CPU-resources per HANA process Memory allocation • [indexserver.ini] statement_memory_limit controls the memory consumption of statements ( can be altered per db-user manually) Execution priority (available with SPS09) • ALTER USER SYSTEM SET PARAMETER PRIORITY = <prio> • sets user-level priority for all statements in the current connection between 0 …9 (default: 5) .ini-parameters control resource management of the complete HANA-DB
  • 6. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 6Public Introducing Workload Classes Datamart-App Administrator Tasks: • create workload classes • create workload mapping ERP-App, App_Name “MRP” ERP-App, App_Name “MyDashboard” DB-user “DATAM” DB-user “ERP001” DB-user “ERP001” HANA System Workload “DATAM”session-context session-context session-context Workload “BW” resource-config resource-config Workload “MRP” resource-config Workload “MYDASH” resource-config statm-context statm-context statm-context mapping mapping mapping
  • 7. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 7Public Administrating Workload Classes Step 1: Create Workload Class (WORKLOAD_CLASSES)  Create a workload class in the HANA Studio SQL console with the following resource properties: – statement_thread_limit = max #of parallel threads to execute a statement – statement_memory _limit = max #of memory allocated per statement – statement_priority = execution priority for a statement  You can set all resource properties or only a subset  SQL Syntax: <CREATE|ALTER|DROP> WORKLOAD CLASS <NAME> [SET <PROPERTY LIST>]  Example: create workload class "MRP" set 'PRIORITY' = '6', 'STATEMENT MEMORY LIMIT' = '2' , 'STATEMENT THREAD LIMIT' = '20' Step 2: Create Workload Mapping (WORKLOAD_MAPPINGS)  Create workload mapping based on client context information (‘ClientInfo object’ sent by the HANA application): – Client = client number (usually applied by SAP ABAP applications, like SAP Business Suite / BW) – Application Name = name of the application – Application User Name = name of the application user (usually the user logged into the application) – User Name = name of the db-user (the HANA user, where the application is connected technically with)  SQL Syntax: <CREATE|ALTER|DROP> WORKLOAD MAPPING <NAME> WORKLOAD CLASS <WC NAME> [SET <PROPERTY LIST>]  Example: create workload mapping "MRPCLIENT" workload class "MRP" set 'USER NAME' = 'ERP001', 'APPLICATION NAME' = 'MRP';
  • 8. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 8Public Monitoring Views for Workload Classes  SYS.M_CONNECTIONS  SYS.M_PREPARED_STATEMENTS; SYS.M_ACTIVE_STATEMENTS
  • 9. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 9Public Mapping of Workload Classes Mapping of Workload Classes  Always the most specific workload class is mapped to a db-client  If no workload class can be mapped, the internal default values or .ini-parameter of the HANA-db are applied (default) – statement_thread_limit => [internal default value] ‘0’  no limit – statement_memory_limit => [.ini] statement_memory_limit – statement_priority => [internal default value] ‘5’  If a workload class has only a subset of the resource properties defined, the internal default values or .ini parameter-values are applied for the remaining properties Client WCLERP WCLALF APPLICATION_USER_NAME = ‘ALF’ USER_NAME = ‘ERP001’ APPLICATION_USER_NAME = ‘ALF’ CLIENT = ‘001’ APPICATION_NAME = ‘MRP’ USER_NAME = ‘ERP001’ CLIENT = ‘001’ APPICATION_NAME = ‘MRP’ USER_NAME = ‘ERP001’ Mapping
  • 10. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 10Public Mapping of Workload Classes Priority of ClientInfo properties for mapping  If two workload classes have the same matching number of ClientInfo properties, the workload class is applied that matches properties with higher priority  There is the following priority: 1. Application_User_Name 2. Client 3. Application_Name 4. User_Name Client WCLERP WCLALF APPLICATION_USER_NAME = ‘ALF’ CLIENT = ‘001’ APPICATION_NAME = ‘MRP’ USER_NAME = ‘ERP001’ CLIENT = ‘001’ APPICATION_NAME = ‘MRP’ USER_NAME = ‘ERP001’ APPLICATION_USER_NAME = ‘ALF’ APPICATION_NAME = ‘MRP’ USER_NAME = ‘ERP001’ Mapping
  • 11. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 11Public Additional Remarks Privileges  Managing workload classes requires the ‘WORKLOAD ADMIN’ privilege Changing Workload Classes  Changes of workload classes or mappings will only be applied, if a (connected) db-client re-connects  You can change the running session-context of a connected db-client via SQL-command ‘ALTER SYSTEM ALTER SESSION SET' Multi-Database Containers (MDC)  Workload classes work also in a multi-database environment, but you need to define workload classes for each single db-container Scale-out  Workload classes are applied to the complete HANA-db in a scale-out environment, but not to each single node Dropping users / workload classes  If you drop a user in the HANA-db, all related workload classes are dropped  If you drop a workload class, the related mappings are dropped Setting the ClientInfo in the application  The client info is a list of property values pairs that an application can set in in the client interface
  • 12. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 12Public DEMO
  • 13. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 13Public Disclaimer This presentation outlines our general product direction and should not be relied on in making a purchase decision. This presentation is not subject to your license agreement or any other agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to develop or release any functionality mentioned in this presentation. This presentation and SAP’s strategy and possible future developments are subject to change and may be changed by SAP at any time for any reason without notice. This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP intentionally or grossly negligent.
  • 14. © 2015 SAP SE or an SAP affiliate company. All rights reserved. Thank you Contact information Rüdiger Karl SAP HANA Product Management AskSAPHANA@sap.com