HANA2 Dynamic Tiering This is a compilation of notes collected exploring and testing features of Dynamic Tiering in HANA2 May 2017 This is a ‘continuation’ of the first blog, SAP HANA Dynamic Tiering Test- drive , exploring the features of Dynamic Tiering before the HANA2 By OZSoft Consulting for ITConductor.com Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 1
24
Embed
SAP HANA 2 – Dynamic Tiering Overview including HANA Monitoring
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
HANA2 Dynamic Tiering
This is a compilation of notes collected exploring and testing features of Dynamic Tiering in HANA2
May 2017
This is a ‘continuation’ of the first blog, SAP HANA Dynamic Tiering Test-drive, exploring the features of Dynamic Tiering before the HANA2
Cohost Deployment is not recommended in production
HOST1Host Role (Worker, Extended Storage)
HOST2 Role (Worker, Extended
Storage Worker/Standby)
Host.nRole=Worker
Host..nRole=Extended Storage
Worker/Standby
Cohost deployment in production is supported. ES configuration parameters available to avoid impact on performance
Dynamic Tiering Installation / Add Host role
• Using HANA Cockpit (Life Cycle Management)
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 6
Add role to existing host
Installation
HANA2 Cockpit – Dynamic Tiering
When an ‘extended storage’ has been provisioned to a tenant DB, the Dynamic Tiering options will appear in HANA2 Cockpit for that tenantDB
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 7
Dynamic Tiering Tables
There are two types of tables in Dynamic Tiering option
1. Extended table - table specifically created with all data stored into the extended storage (ES).
This was explored in the previous blog SAP HANA Dynamic Tiering Test-drive
2. MultiStore table – partitioned table with some partitions stored in the in-memory, and some partitions in the extended storage – new in HANA2.
The following slides shows the differences on the table creation, moving data into ES, making the access to the table transparent – regardless of the location of the data.
MultiStoreMultistore table can have some part(s) in in-memory, and some parts in extended storage
HOST – roles (WORKER, ES Worker)
In-Memory
TSP06 tablePart1..Part2..Part3
Extended Storage DBspace
TSP06 TablePart4..Part5..
Dynamic Tiering - Table creation
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 10
Extended Table
WORKER host(In-Memory)
HOT Tables(e.g.
TSP06_HOT)
Extended Storage host
WARM Tables(e.g.
TSP06_WARM)
MultiStore TableDefine multistore table as partitioned, with some partitions in in-memory, while other partitions using extended storage
HOST – roles (WORKER, ES Worker)
In-Memory TSP06 table
Part1..Part2..Part3
Extended Storage DBspace
TSP06 TablePart4..Part5..
• CREATE TABLE TSP06_HOT …• CREATE TABLE TSO06_WARM USE
EXTENDED STORAGE
CREATE VIEW TSP06_ALL..JOIN TSP06_HOT, TSP06_WARM
The view will make the change transparent to existing access calls
CREATE TABLE … PARTITON BY RANGE.. USING DEFAULT STORAGE (Partition
definition) USING EXTENDED STORAGE (Partition definition)
(NO View needed)
Moving data (archiving/un-archiving)
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 11
Extended Table
WORKER host
HOT Tables(e.g.
TSP06_HOT)
Extended Storage host
WARM Tables(e.g.
TSP06_WARM)
MultiStore TableAging – moving data from in-memory to ES
ALTER TABLE …ALTER PARTITION.. USING EXTENDED STORAGE
(partition definition)
HOST – roles (WORKER, ES Worker)
In-Memory TSP06 table
Part1..Part2..Part3
Extended Storage DBspace
TSP06 TablePart4..Part5..
Step 1INSERT INTO TSP06_WARM
SELECT * from TSP06_HOTWHERE (criteria)
Step 2DELETE FROM TSP06_HOT WHERE (Criteria as per insert)
Moving data from In-Memory to ES
UN-Aging – moving data from ES to in-memory
ALTER TABLE …ALTER PARTITION.. USING DEFAULT STORAGE
(partition definition)
Multi-Store Table (1)
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 12
In-Memory
In-Memory
Extended Storage
Defining table with range partitioning on column PDPAPER – some partitions in DEFAULT STORAGE (In-Memory), some in Extended Storage
Multi-Store Table (2)
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 13
Partition information/Table definition
Virtualize Plan (1)
Select * (all data, from in-memory and extended storage)
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 14
Virtualize Plan (2)
Select data from partition 1 and 2 (from In-Memory)
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 15
Only partition 1 and 2 accessed – extended storage not involved
Virtualize Plan (3)
Select data from partition in the extended storage only
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 16
Other options (1)
A table can be moved to extended storage using HANA Studio
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 17
AFTER CONVERSION
For a partitioned table where all partitions were in DEFAULT storage, using this option will result in losing the partitioning values – i.e. will end up as extended storage table (not partitioned). Use ALTER partition instead
Other Options (2)
A table using extended storage can be converted to use in-memory, through HANA Studio
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 18
AFTER CONVERSION
BACKUP (delta and incremental)
Delta (differential) and Incremental now supported for tenant with extended storage
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 19
HANA2 Dynamic Tiering - Alert
Alert series 5nn are related to Dynamic Tiering
Author: Terry KempisEditor: Linh Nguyen
ITConductor.com 20
Additional notes (1)
• With HANA2, co-deployment is introduced in production, with new esserver.ini parameters to put threshold on the host so the extended storage activities does not impact the production performance
• As per OSS note 2086829, Dynamic Tiering licensing is ‘based on compressed storage on disk’ – not on memory
• Delta store feature allows concurrent update on table in extended storage
• Take note on sizing algorithm when allocating the DBSPACES – refer to the DT Administration Guide ‘Dbspace Sizing’.
• 2394124 - SAP HANA 2.0 Dynamic Tiering - Additional Information