[db tech showcase tokyo 2014] b25: [in-memory db: sap hana] 障害・災害対策のメカニズム ...

52
Use this title slide only with an image db tech showacase Tokyo 2014 In-Memory DB: SAP HANA障害・災害対策のアルゴリズム SAPジャパン株式会社 2014/11/12

Upload: insight-technology-inc

Post on 30-Jun-2015

918 views

Category:

Technology


1 download

DESCRIPTION

In-Memory DBのSAP HANAは、全てのデータをメモリ上に置いて処理を行うことで高速なパフォーマンスを実現しています。当然停電などの障害時にメモリのデータはどうなるのかなどご質問をよくお聞きします。 このセッションではSAP HANAの障害・災害対策に備えた仕組みについて説明します。 【主な内容】  ・永続化の仕組み  ・バックアップの方法  ・スケールアウト構成を含めたHA/DRの仕組み ・・・他

TRANSCRIPT

  • 1. db tech showacase Tokyo 2014In-Memory DB: SAP HANA SAP2014/11/12Use this title slide only with an image

2. SAPSAPSAPSAPSAPSAP 2014 SAP SE or an SAP affiliate company. All rights reserved. 2 3. p SAPHANAp SAP HANAp p p p p p p p 4. p SAPHANAp SAP HANAp p p p p p p p 5. SAP HANA(DRAM)VS SAPHasso PlattnerCache 2014 SAP SE or an SAP affiliate company. All rights reserved. 5 6. /SAP HANACPUI/O50MemoryI/O50,000SSDHard DISKStorage64-bit 100GB/s 6TB RAMCPUMemory+++++ / / HDDDisk1000I/O5,000,000 SSD SSD1000100,000 2014 SAP SE or an SAP affiliate company. All rights reserved. 6 7. p SAPHANAp SAP HANAp p p p p p p p 8. SAP HANASAP HANA HANA undo (Redo) Commit SAP HANACommitUndo DataRedo 2014 SAP SE or an SAP affiliate company. All rights reserved. 8 9. SAP HANA Write(,)Commit()Virtual Fileredo/undoCommitCommitWriteWriteCommitVirtual FileCommit 2014 SAP SE or an SAP affiliate company. All rights reserved. 9 10. SAP HANA ()Phase1Phase1Phase2Phase3 2014 SAP SE or an SAP affiliate company. All rights reserved. 10 11. SAP HANA Data Volume SAP HANAData VolumeLogVolumeData Volume, Log VolumeHANA 2014 SAP SE or an SAP affiliate company. All rights reserved. 11 12. p SAPHANAp SAP HANAp p p p p p p p 13. SAP HANA to redo / / HANA Box SAP HANA Box LogVolumeDataVolumeLogVolumeDataDataLogVolumeVolumeDataVolumeLogVolumeVolume 2014 SAP SE or an SAP affiliate company. All rights reserved. 13 14. SAP HANA Studio Administration ConsoleSAP HANA Backup and Recovery Back up System Backup DestinationBackup Prefix 2014 SAP SE or an SAP affiliate company. All rights reserved. 14 15. Server1Server2Server3Global savepointGlobal savepointPhase2Savepointphase2Savepointphase2Savepointphase2Global savepointPhase3SavepointSavepointSavepoint 2014 SAP SE or an SAP affiliate company. All rights reserved. 15 16. Server1Server2Server3SavepointSavepointSavepointBackup ExecutorsavepointsavepointsavepointsavepointBackup 2014 SAP SE or an SAP affiliate company. All rights reserved. 16 17. SAP HANASAP HANA2HANA3rdl HANANFSSAP HANADatabaseNFSl 3rdNFSSAP HANADatabaseNFS 3rd2014/11Certifiedl Symantec NetBackup 7.5l IBM Tivoli Storage Manager 6.47.0l Commvault Systems Simpana 10.0l HP Data Protector 7.0/8.1l EMC Data Domain Boost for Databases and Applications 1.0l EMC NetWorker 8.2l SEP Sesam 4.4* 2014 SAP SE or an SAP affiliate company. All rights reserved. 17 18. SAP HANA HANA Data + Log Data SAP HANA Box LogVolumeLogVolumeData VolumeDataDataLogVolumeVolumeDataVolumeLogVolumeVolume 2014 SAP SE or an SAP affiliate company. All rights reserved. 18 19. 3()2()Time0Crash1 2014 SAP SE or an SAP affiliate company. All rights reserved. 19 20. 3 2 10Crash11. 2. 3. 2 1. 2. 3. 31. 2. 3. 2014 SAP SE or an SAP affiliate company. All rights reserved. 20 21. SAP HANA Studio Administration ConsoleSAP HANA Backup and Recovery Recover System SIDadm 2014 SAP SE or an SAP affiliate company. All rights reserved. 21 22. p SAPHANAp SAP HANAp p p p p p p p 23. 1. SAP HANA ()2. SAP HANA 1. SAP HANA 2. SAP HANA 2014 SAP SE or an SAP affiliate company. All rights reserved. 23 24. SAP HANA2 MasterNameServerIndexServerDataDisksLogDisksNameServerIndexServer 2014 SAP SE or an SAP affiliate company. All rights reserved. 24 25. SAP HANA2datalogs 2014 SAP SE or an SAP affiliate company. All rights reserved. 25 26. p SAPHANAp SAP HANAp p p p p p p p 27. SAP HANA HANAstart/stopSAP HANA Appliance(Master) Node(Master) Name Server(Master) Index ServerStatistics ServerPreprocessorSAP HANA Studio RepositorySAP Host AgentSoftware Update Manager(Slave) Node 1Name ServerName ServerIndex ServerPreprocessorSAP Host Agent(Slave) Node nIndex ServerPreprocessorSAP Host Agent 2014 SAP SE or an SAP affiliate company. All rights reserved. 27 28. SAP HANA LOGDISKDATADISKLOGDISKDATADISKLOGDISKDATADISKLOGDISKDATADISKLOGDISKDATADISK*Standby Host:Name Server (active)Index Server (standby)Shared NothingConcept 2014 SAP SE or an SAP affiliate company. All rights reserved. 28 29. SAP HANA 1 /1HA Read/WriteName Service SAP HANAname service : WorkerShared StorageServer 1Server 2Server 3Server 4Server 5Server 6Standby ServerNameserverNameserverNameserverNameserverNameserverNameserverNameserver:Server 1Standby ServerSANStorageStorageConnectorAPINameserverNameserver 2014 SAP SE or an SAP affiliate company. All rights reserved. 29 30. 2014 SAP SE or an SAP affiliate company. All rights reserved. 30 31. : HANA 1 HANAName Server User store: hana1;hana2;hana3 sqldbc (SAP Appl. Server,hdbsql, ODBC, python) user store: SQL clients:SAP Appl. ServerhdbsqlUser Storehana1;hana2;hana3hana1 hana2 hana3HANA Scale-Outhana1NameServerIndexserverDataDiskshana3standbyNameServerIndexserverLogDiskshana2NameServerIndexserver 2014 SAP SE or an SAP affiliate company. All rights reserved. 31 32. p SAPHANAp SAP HANAp p p p p p p p 33. HANADB HP ServiceGuard SUSE Cluster SAP Landscape VirtualizationManagement) ~ 2014 SAP SE or an SAP affiliate company. All rights reserved. 33 34. Synchronous FULLSynchronousSynchronous in memoryAsynchronous 2014 SAP SE or an SAP affiliate company. All rights reserved. 34 35. SynchronousFullPrimary SecondaryData Log Data Logl l SynchronousPrimary SecondarylData Log Data Logl SyncronousFulSynchronous in memoryPrimary SecondaryACKData Log Data LogAsynhcronousPrimary SecondaryData Log Data Logl l l l 2014 SAP SE or an SAP affiliate company. All rights reserved. 35 36. p SAPHANAp SAP HANAp p p p p p p 37. SAPHANA Data Center 1Clients Application ServersOS: DNS, hostnames, virt. IPsPrimary(active)Name ServerIndex serverSecondary(active, data pre-loaded)Name ServerIndex serverHA Solution PartnerHA Solution PartnerTransferbyHANAdatabasekernelInternalDisksInternalDisksDataDisksLogDisksDataDisksLogDisks 2014 SAP SE or an SAP affiliate company. All rights reserved. 37 38. (QA/DEV) 1(QA/DEV) Data Center 1Clients Application ServersOS: DNS, hostnames, virt. IPsPrimary(active)Name ServerIndex serverSecondaryPRDshadowoperationName ServerQA/DEVrunningIndex serverHA Solution PartnerHA Solution PartnerTransferbyHANAdatabasekernelInternalDisksDataDisksLogDisksInternalDisksDataDisksLogDisksDataDisksQA/DEVLogPRD Disks 2014 SAP SE or an SAP affiliate company. All rights reserved. 38 39. p SAPHANAp SAP HANAp p p p p p p p 40. HADisaster Tolerance1I/On n DISKHANAClients Application Servers1 2OS: DNS, hostnamesPrimaryNameServerIndexserverNameServerIndexserverNameServerIndexserverOS: MountsDataVolumesLogVolumeHA Solution PartnerDataVolumesLogVolume1755396 - Released DT solutions for SAP HANA with disk replicationSecondary(inactive)NameServerIndexserverNameServerIndexserverNameServerIndexserverStorageMirroringHA Solution PartnerDataVolumesLogVolumeDataVolumesLogVolume 2014 SAP SE or an SAP affiliate company. All rights reserved. 40 41. 22n QADEVClients ApplicationServersData Center 1 Data Center 2OS: DNS, hostnamesPrimaryNameServeIndexserverNameServrIndexserverOS: MountsDataVolumesLogVolumeNameServrIndexserverSecondaryProd. (inactive),QADEV (active)NameServerIndexserverNameServerIndexserverNameServerIndexserverHA Solution PartnerStorage MirroringHA Solution PartnerDataVolumesLogVolumeDataVolumesLogVolumeDataVolumesLogVolumeQA/DEVDataVolumesLogVolumeDataVolumesLogVolumen Clients ApplicationServersData Center 1 Data Center 2OS: DNS, hostnamesPrimaryNamServrIndexserverNameServeIndexserverOS: MountsDataVolumesLogVolumeNameServrIndexserverSecondary(inactive)NameServerIndexserverNameServerIndexserverNameServerIndexserverHA Solution PartnerStorage MirroringHA Solution PartnerDataVolumesLogVolumeDataVolumesLogVolumeDataVolumesLogVolume 2014 SAP SE or an SAP affiliate company. All rights reserved. 41 42. p SAPHANAp SAP HANAp p p p p p p p 43. (seconds to less minutes) SYNCASYNC HWStep-by-Step ImplementationGuide (updated recently toSPS8): https://scn.sap.com/docs/DOC-47702Clients Application ServersData Center 1 Data Center 2OS: DNS, hostnames, virt. IPsPrimary(active)NameServerIndexserverNameServerIndexserverOS: MountsDataVolumesLogVolumeNameServerIndexserverSecondary(active, data pre-loaded)NameServerIndexserverNameServerIndexserverNameServerIndexserverHA Solution PartnerHA Solution PartnerDataVolumesLogVolumeDataVolumesLogVolumeDataVolumesLogVolumeTransferbyHANAdatabasekernel 2014 SAP SE or an SAP affiliate company. All rights reserved. 43 44. SYNCASYNC TCO DISKStep-by-Step ImplementationGuide (updated recently toSPS8): https://scn.sap.com/docs/DOC-47702Clients Application ServersData Center 1 Data Center 2OS: DNS, hostnames, virt. IPsPrimary(active)NameServerIndexserverNameServerIndexserverOS: MountsDataVolumesLogVolumesNameServerIndexserverSecondary(active,)shadowoperationNameServerIndexserverPRDNameServerQA/IndexDEVrunningserverNameServerIndexserverHA Solution PartnerHA Solution PartnerDataVolumesLogVolumesDataVolumesPRD QA/DEVLogVolumesDataVolumesLogVolumesTransferbyHANAdatabasekernelDataVolumesLogVolumeDataVolumesLogVolume 2014 SAP SE or an SAP affiliate company. All rights reserved. 44 45. System ReplicationSystem Replication1:n10km100km100km1:nSystem replication 2014 SAP SE or an SAP affiliate company. All rights reserved. 45 46. System Replication10km100km100kmRPO 0RTO30 min 2014 SAP SE or an SAP affiliate company. All rights reserved. 46 47. System Replication3RPO=6RTO=1824310km100kmDCBCP 2014 SAP SE or an SAP affiliate company. All rights reserved. 47 48. p SAPHANAp SAP HANAp p p p p p p p 49. 1+1()MasterNameServerIndexServerDataDisksLogDisksNameServerIndexServer2 (1+1)Primary(active)Name ServerIndex serverSecondary () (active, data pre-loaded)Name ServerIndex serverTransferbyHANAdatabasekernelInternalDisksInternalDisksDataDisksLogDisksDataDisksLogDisksor SecondaryPRD shadow operationName ServerQA/DEVrunningIndex serverDataDisksPRDQA/DEVLogDisksDataDisksLogDisks 2014 SAP SE or an SAP affiliate company. All rights reserved. 49 50. 2 (1+1)Primary(active)Name ServerIndex server () Secondary(active, data pre-loaded)Name ServerIndex serverTransferbyHANAdatabasekernelInternalDisksInternalDisksDataDisksLogDisksDataDisksLogDisksor SecondaryPRD shadow operationName ServerQA/DEVrunningIndex serverDataDisksLogDisksDataDisksLogDisksPRDQA/DEV2 (1+1)StorageMirroringPrimary(active)Name ServerIndex serverSecondary(stanby)Name ServerIndex serverExternalDisksExternalDisksDataDisksLogDisksDataDisksLogDisksor QA/DEVSecondaryName ServerIndex serverStorageMirroring QA/DataDisksDataDisksDEVLogDisks 2014 SAP SE or an SAP affiliate company. All rights reserved. 50 51. system operationalRPO RTOoperation resumedtimeSync orbackupprepare detect recover perf. rampKPIs: (RPO)= worst-case data-loss (RTO)= time to recover from outage Solution Used for Cost RPO RTO Perf. rampBackupRecovery HADR $ high high medSAP HANA Host Auto-Failover HA $ 0 med longSAP HANA Storage Replication w/ QA, Dev. DR $$ 0* med longSAP HANA System Replication HADR $$$ 0* low shortSAP HANA System Replication w/ QA, Dev. HADR $**/$$ 0* med long*synchronous solution** single host installationsHA(High Availability) DR(Disaster Recovery) 2014 SAP SE or an SAP affiliate company. All rights reserved. 51 52. Contact information:Toshiro MorisakiSenior ArchtectE-Mail:[email protected] 2014 SAP SE or an SAP affiliate company. All rights reserved.