33
SAPジャパン株式会社 花木敏久 [email protected] 6/11/2015 DBTech Showcase 2015 SAP HANAオーバービューと最新情報

[db tech showcase Tokyo 2015] D22:インメモリープラットホームSAP HANAのご紹介と最新情報 by SAPジャパン株式会社 花木敏久

Embed Size (px)

Citation preview

1. SAP [email protected] 6/11/2015 DBTech Showcase 2015 SAP HANA 2. 2015 SAP SE or an SAP affiliate company. All rights reserved. 2 SAPSAP SAP SAP SAP SAP 3. 2015 SAP SE or an SAP affiliate company. All rights reserved. 3 4. 2015 SAP SE or an SAP affiliate company. All rights reserved. 4 SAP HANA DBTech Showcase 2015 5. 2015 SAP SE or an SAP affiliate company. All rights reserved. 5 IMDB AP SPS10 6. 2015 SAP SE or an SAP affiliate company. All rights reserved. 6 One Data HANAAging Data Storage Memory Memory CPU Disk CPU SAP HANA SSD Hard DISK 1000 I/O 50 I/O 50,000 I/O 5,000,000 7. 2015 SAP SE or an SAP affiliate company. All rights reserved. 7 Order Country Produc t Sales 456 France corn 1000 457 Italy wheat 900 458 Spain rice 600 459 Italy rice 800 460 Denmark corn 500 461 Denmark rice 600 462 Belgium rice 600 463 Italy rice 1100 SAP HANA Dictionary/Value-ID Dictionary/ValueID DictionaryValueId Value-IDValueIDRecID Inverted Index:RecIDValueID 1 Belgium 2 Denmark 3 France 4 Italy 5 Spain 1 3 2 4 3 5 4 4 5 2 6 2 7 1 8 4 1 7 2 5,6 3 1 4 2,4,8 5 3 Logical Table Dictionary 5 3bit ValueID (bit fields) Inverted indexDictionary ValueID RecID ValueID =31.9/SAP, 8. 2015 SAP SE or an SAP affiliate company. All rights reserved. 8 SAP HANA ValueID ValueID CPU Prefix Encoding Run Length Encoding (RLE) Cluster Encoding Sparse Encoding Indirect encoding Corn Wheat Rice 2 1 1 1 3 2 2 1 2 1*3 3 2*2 1 9. 2015 SAP SE or an SAP affiliate company. All rights reserved. 9 1 Belgium 2 Denmark 3 France 123 Spain 1 3 2 4 3 123 4 4 1024 123 1025 1 1026 4 0 1 1 0 1 1 1 ValueID Dictionary ValueID RecID SELECT SALES FROM ORDERS WHERE COUNTRY = Spain Dictionary 123 Consistent View Filter OrdersCountry RecID 31024 10. 2015 SAP SE or an SAP affiliate company. All rights reserved. 10 1 Belgium 2 Denmark 3 France 123 Spain 1 3 2 4 3 123 4 4 1024 123 1025 1 1026 4 0 1 1 0 1 1 1 ValueIDDictionary ValueID RecID SELECT SALES FROM ORDERS WHERE COUNTRY = Spain Dictionary Consistent View Filter OrdersCountry RecID 31024 1 1025 2 857 3 1 4 2,4,1026 123 3,1024 124 51,46 125 18 Inverted index 11. 2015 SAP SE or an SAP affiliate company. All rights reserved. 11 1 120000 2 750000 3 30000000 123 5500000 124 1000000 1 3 2 4 3 123 4 4 1024 123 1025 1 1026 4 ValueID Dictionary ValueIDRecID SELECT SALES FROM ORDERS WHERE RecID = 1024,3 OrdersSales Sales 5,500,00030,000,000 12. 2015 SAP SE or an SAP affiliate company. All rights reserved. 12 insert Only 1|1 2|2 3|3 2 3 0 1 1|Green 2|Blue 3|Red 2 2 1 3 1|1 2|2 3|3 2 3 0 1 1|Green 2|Blue 3|Red 2 2 1 3 1|1.25 2|0.08 3|12.1 1 2 3 3 2 12 White 4.01 45 Cien 0.31 SELECT ID, COLOR FROM PRODUCTS WHERE MARGIN > 1.00; INSERT INTO PRODUCTS ....; UPDATE ....; DELETE ....; READ READ Write 1|1.25 2|0.08 3|12.1 1 2 3 3 Insert Only 4 Black 2.22 5 Yellow 0.001 13. 2015 SAP SE or an SAP affiliate company. All rights reserved. 13 SAP HANA Insert, Update, Delete insert Insert DB Insert Update Delete L Insert Only Select 14. 2015 SAP SE or an SAP affiliate company. All rights reserved. 14 UI AP DB SAP HANA HANA AP 15. 2015 SAP SE or an SAP affiliate company. All rights reserved. 15 / SAP HANA HANA ,09:00:00 ,09:00:05 EDW DM DM DM ,09:00,09:00 16. 2015 SAP SE or an SAP affiliate company. All rights reserved. 16 DB HTTP(S), HTML, CSS, JS, HTTP(S), oData SQL (MDX) SAPUI5UI Generic Analytical UI (BOBJ, 3rd Party, ) XS(Web) DB) SAP HANA PLATFORM Information View () R & Hadoop / JavaScript, Odata, SQLScript SQL Extended Storage Extended Storage ServerIQ ASE MS SQL Lumira (ETL) ( ) 17. 2015 SAP SE or an SAP affiliate company. All rights reserved. 17 SAP HANA XS JavaScript, Odata, Lumira SNS / / (*1) Information View () / SQLScript SQL Veiw Veiw Veiw Information View () / SQLScript SQL OLTP ETLSDA or SAP HANA SAPUI5UI Generic Analytical UI (BOBJ, 3rd Party, ) *1 18. 2015 SAP SE or an SAP affiliate company. All rights reserved. 18 SAP HANA SQL SQLScript // XS AFL JavaScript Odata SDA SDISDQ Smart Streaming SAP HANA DB DB SQL Scripts R XS (Web Server) ODataJava Script 19. SAP HANA SPS10 New Core Feature 20. 2015 SAP SE or an SAP affiliate company. All rights reserved. 20 SAP HANA SPS9 SPS10 (MDC) SAP HANA Application SAP HANA System Tenant DB Application Tenant DB System DB New features as of SPS10 DATABASE ADMIN: START /STOP / CREATE / DROP/ BACKUP / RECOVER TENANT DB 21. 2015 SAP SE or an SAP affiliate company. All rights reserved. 21 SAP HANA SPS9 SPS10 SAP HANA SAP HANA HANA Database Service HANA Database Engine Table (warm data) Table Extended table All related data resides in extended store Table Table Client Applicatio n Connect HANA Dynamic Tiering Engine New features as of SPS10 Extended Storage Server (esserver) connection, transaction, lock, etc 22. 2015 SAP SE or an SAP affiliate company. All rights reserved. 22 SAP HANA SPS9 SPS10 SAP HANA HANA DB APP A D E B C OLTP + OLAP F I G H Master Slave CPU Load APP A D E B C OLTP (writable) F IG H Master Slave CB OLAP (read-only) 23. 2015 SAP SE or an SAP affiliate company. All rights reserved. 23 SAP HANA SPS10 1:N APP A D E B C OLTP (writable) Master F IG H Slave1 C1B1 F IG H Slave2 C 2 B2 F IG H SlaveN C N B N OLAP1 (read-only) OLAP2 (read-only) OLAPn (read-only) HANA DB CPU Load .. .. 24. 2015 SAP SE or an SAP affiliate company. All rights reserved. 24 SAP HANA SPS10 - Rules (HANADB ) (, ) APP A D E B C OLTP (writable) Master F IG H Slave1 C1B1 F IG H Slave2 C2B2 F IG H SlaveN CNBN OLAP1 (read-only) OLAP2 (read-only) OLAPn (read-only) .. 25. 2015 SAP SE or an SAP affiliate company. All rights reserved. 25 SAP HANA SPS10 SAP HANA SAP HANA 26. 2015 SAP SE or an SAP affiliate company. All rights reserved. 26 SAP HANA SPS10 - solution Solution GlobalAllocatorLimit Startstatement OOM TIME MEMORY StatementMemoryLimit JobB (App.1) JobA (App.1) JobY (App.2) JobX (App.2) JobZ (App.2) ORDEROFJOBS App.2=App.1 JobB (App.1) JobA (App.1) JobY (App.2) JobX (App.2) JobZ (App.2) App.2>App.1 1. 2. 3. 4. 5. LargeoperaXon SmallJob SmallJobSmallJob TinyJob SmallJob SmallJob TinyJob SmallJob TinyJobSmallJob [ ] 27. 2015 SAP SE or an SAP affiliate company. All rights reserved. 27 SAP HANA SPS10 technical details (ex. Client=900, ApplicationName=BW, ApplicationUserName=SAPTESTER) / [] / 1. 2. Look up 3. Execution Context () Memory Allocator () / 4. Apply 4. Apply 5. 28. 2015 SAP SE or an SAP affiliate company. All rights reserved. 28 SAP HANA SPS10 NUMA-aware NUMA(Non Uniformed Memory Architecture) 5x less CPU 2x throughput Job Segment Allocation Segment Allocation 29. 2015 SAP SE or an SAP affiliate company. All rights reserved. 29 SAP HANA SPS10 TSX Baseline1.0(Normalized) 4-Socket Intel Xeon Processor E7-4890 v2 (15 Cores, 2.8 GHz, Ivy Bridge-EX) + SAP HANA* SPS8 Upgrade to SAP HANA* SPS9 Up to 1.8x more transactions New software enhancements Upgrade to E7-8890 v3 (18 Cores, 2.5 GHz, Haswell-EX) Up to 2.7x more total transactions More threads and cache Improved microarchitecture Add Intel TSX Up to 6x more total transactions Fine-grain locking performance using course-grain programming T0 T1 T2 T3 T0 T1 T2 T3 Serial execution Parallel execution Lock transfer latencies No lock transfer latencies Intel Xeon E7 v3 + Transactional Synchronization Extensions 30. 2015 SAP SE or an SAP affiliate company. All rights reserved. 30 HANA on Power General Availability (GA) 2015 . SAP HANA SPS10 31. SAP HANA SPS10 6 32. 2015 SAP SE or an SAP affiliate company. All rights reserved. 32 SAP HANA 17:30-18:20Room B 33. 2015 SAP SE or an SAP affiliate company. All rights reserved. SAP [email protected]