46
World ® ’1 6 Advanced DBA – High Availability for MUF Kevin Shuma VP, Product Management CA Technologies MFX64E MAINFRAME AND WORKLOAD AUTOMATION

Advanced DBA – High Availability for MUF

Embed Size (px)

Citation preview

Page 1: Advanced DBA – High Availability for MUF

World®’16

AdvancedDBA–HighAvailabilityforMUFKevinShumaVP,ProductManagementCATechnologies

MFX64E

MAINFRAMEANDWORKLOADAUTOMATION

Page 2: Advanced DBA – High Availability for MUF

2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Abstract

ThissessiondescribestheavailableoptionsforsitesthatneedtokeeptheirCADatacomenvironments(MUFs)operationalforextendedperiodsoftime.ThisincludefunctionalitytocoverIPLs,systemsoutagesandevenCADatacomsoftwareupgrades.

ThissessionwillprimarilycoverthenewfeaturesavailableintheCADatacom®/DBprocessingthatallowstheCADatacomenvironment(MUF)tomigratefromoneaddressspacetoanotherwithoutanoticeableoutagetotheendusers.

KevinShuma

CATechnologiesVP,ProductManagement

Page 3: Advanced DBA – High Availability for MUF

3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Agenda

WHATISHIGH-AVAILABILITYFORDATABASEENVIRONMENTS

DATASHARINGSHADOWTECHNOLOGY

ACTIVE-QUERY(ACTIVE-ACTIVEARCHITECTURE)

SUMMARY

1

2

3

4

Page 4: Advanced DBA – High Availability for MUF

4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Whatishigh-availability?

“Highavailabilityisacharacteristicofasystem,whichaimstoensureanagreedlevelofoperationalperformance,usuallyuptime,forahigherthannormalperiod.”

“Ifausercannotaccessthesystem,itis- fromtheuserspointofview– unavailable.Generally,thetermdowntimeisusedtorefertoperiodswhenasystemisunavailable.”

AccordingtoWikipedia

24x7

Page 5: Advanced DBA – High Availability for MUF

5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Whatishigh-availabilityfordatabaseenvironments

§ TheabilityfortheDatacomenvironment(MUF)toremainupormigratefromoneaddressspacetopanotherwithoutanoticeableoutagetotheend-user– Donotinterruptuserdataaccessfor

§ MUFfailures§ IPLs§ Softwaremaintenance§ Softwareupgrades(newreleases)§ JustabouteverythingaSYSPROG“needs”todotokeepasystemrunning

FromaCADatacomperspective

Page 6: Advanced DBA – High Availability for MUF

6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Datasharingshadowtechnology

Page 7: Advanced DBA – High Availability for MUF

7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ CADatacomsupports3differentdatasharingtechniques

§ TheShadowMUFistherecommendedandmostusedtechnique– Provides24x7failover– ProvidesmigratecapabilitiesforuseduringIPLs– Providescapabilitiesforimplementingsoftwaremaintenance– (V15.0)Providescapabilitiesforimplementinganewrelease

AspecialformofDataSharingShadowTechnology

Page 8: Advanced DBA – High Availability for MUF

8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ PrimaryMUF– istheMUFinstanceupandenabledatthatmomentoftime

§ ShadowMUF– isthesecondinstanceoftheMUFthatisconsiderednotenabledbutrunningonsameLPARoradifferentLPARonthesameSYSPLEX

§ BothMUFssharethesamesetofdatabases(DASD)

AspecialformofDataSharing

Primary

Shadow

ShadowTechnology(cont’d)

Page 9: Advanced DBA – High Availability for MUF

9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ XCFisusedasthemessageservicebetweentheshadowandtheprimaryMUF

§ IfXCFserviceisstoppedorabends– Possiblelossofcommunicationbetween

thePrimaryandShadowMUFispossible– ShadowMUFcannottakeover,must

beforcedtotakeover– Thisisveryrareintoday’sworld

AspecialformofDataSharing

Primary

Shadow

ShadowTechnology(cont’d)

Page 10: Advanced DBA – High Availability for MUF

10 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ XCFmessages– PrimaryMUFDSNZMFM1

DSNZMFM1:MUFM1:DB02330W- SHADOWSTART,JOB=DSNZMFM2SYSTEM=CA31

– ShadowMUFDSNZMFM2DSNZMFM2:*:DB02301I- XESGROUPJOINED(QAPLEX1,SHADOW$$071)

DSNZMFM2:*:DB02325I- SHADOWMUFNOWWAITING

AspecialformofDataSharing

Primary

Shadow

ShadowTechnology(cont’d)

Page 11: Advanced DBA – High Availability for MUF

11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ShadowTechnology(cont’d)

§ Unplannedoutage– PrimaryMUFfails– LPARfails

§ Plannedoutage– ScheduledIPL– NeedtochangeMUFstart-upoptions– Scheduledsoftwaremaintenance– Scheduledreleaseupgrade(V14toV15)

AspecialformofDataSharing

Primary

Shadow

Page 12: Advanced DBA – High Availability for MUF

12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ShadowTechnology– Unplannedoutage

§ UnplannedShadowMUF– NoCFStructures– OnlyoneMUFupatatime,nointersection

oftwoMUFinstancescanoccur– NoworriesaboutMRDF,CBSandPXX

beingshared

AspecialformofDataSharing

Primary

Shadow

Page 13: Advanced DBA – High Availability for MUF

13 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ Applicationregionsuse“accessanywhere”toconnecttoprimaryMUF

§ ShadowMUFisstarted(sameordifferentLPAR)

§ XCFisusedtoSYNCMUFs

§ Shadow“watches”primary

§ ShadowopensallMUFdatasets,butdoesnotdorequestprocessing

LPAR

1

CICSPLEXBATCH

CICSPLEXXCF

LPAR

2

CICSTOR

CICSTOR

DSNZMFM1

DSNZMFM2RemoteShadow

ShadowMUFPLEX

Allocation/Openonly

FullAccess

XMEM

ShadowTechnology– UnplannedoutageAspecialformofDataSharing

Page 14: Advanced DBA – High Availability for MUF

14 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ PrimaryMUF(MUFPLX1)fails

§ ExistingtransactionsnotifiedofMUFfailure

§ RemoteShadowautomaticallydetectsfailure

§ RemoteShadowbeginsclean-upoffailedMUF

§ Newrequestscanbetoldto“wait”

§ RemoteShadowbecomesMUFPLX1

ShadowTechnology– Unplannedoutage(cont’d)LPAR

1

CICSPLEXBATCH

CICSPLEXXCF

LPAR

2

CICSTOR

CICSTOR

DSNZMFM1

BATCHNewDBreqwait NewDBreqwait

Fullaccess/beginclean-upandnewwork

XMEM

ShadowMUFPLEXDSNZMFM2

RemoteShadow

Page 15: Advanced DBA – High Availability for MUF

15 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ Applicationswithreconnectcapabilitiesre-establishconnectionsandcontinueprocessing

§ Briefpauseinservice,butnotanoutage

§ SiterestartsfailedMUFregionanditautomaticallydetectsthatitisnowtheShadowLP

AR1

CICSPLEXBATCH

CICSPLEXXCF

LPAR

2

CICSTOR

CICSTOR

ShadowMUFPLEX

NewBATCH

FullAccess

XMEM

Allocation/Openonly

DSNZMFM1RemoteShadow

DSNZMFM1

ShadowTechnology– Unplannedoutage(cont’d)

Page 16: Advanced DBA – High Availability for MUF

16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ PlannedShadowMUF– CFstructurerequired– TwoMUFscanbeupsotherulesforfulldatasharing

arenowenforced– CanusetheMigratecommandordotheprocess

manually– IfeitherMUFinstancefailsduringthisprocess,must

restarttheMUFinstancethatfailedASAP– EOJofeitherMUFinstanceremovestheaspectsoffull

datasharing– TimelinefortwoMUFinstancesbeingupatthesame

timeshouldbeconsideredtobebrief

AspecialformofDataSharingShadowTechnology– Plannedoutage

Primary

Shadow

Page 17: Advanced DBA – High Availability for MUF

17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ IssueMIGRATEcommandtoconvertRemoteShadowintoafulldatasharingMUF

§ CouplerFacilityusedtosynchronizetwomemberMUFs

§ BothMUFsnowfullparticipants

ShadowTechnology– PlannedoutageLPAR

1

CICSPLEXBATCH1

CICSPLEX

XCF

LPAR

2

CICSTOR

CICSTOR

ShadowMUFPLEXforIPLCoupler

XMEM

FullAccess FullAccess

DSNZMFM1

DSNZMFM2ActiveMUF

Page 18: Advanced DBA – High Availability for MUF

18 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

§ AllapplicationsnowrunningonLPAR2

§ StopMUFonLPAR1§ Useofcouplerstops§ IPLLPAR1§ OncecompleterestartShadowonLPAR1

§ CouldissueMIGRATEtoreverttooriginalstate

§ CoulduseShadowonLPAR3whileLPAR1IPL’d

ShadowTechnology– Plannedoutage(cont’d)

SVC

LPAR

1

CICSPLEXBATCH1

CICSPLEX

LPAR

2

CICSTOR

CICSTOR

MUFPLX1

ShadowMUFPLEXforIPL

Coupler

BATCH2BATCH3

EOJ

EOJ

EOJ

EOJ

FullAccess

DSNZMFM2ActiveMUF

Page 19: Advanced DBA – High Availability for MUF

19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ShadowTechnology– Plannedoutage(cont’d)

§ Upgradefrom14.0to15.0– Recommendthecodeonlybedoneatthistime– OneMUFinstancecanbe14.0– OtherMUFinstancecanbe15.0– RecommendnotleavingbothMUFinstancesup

verylong– DBIDFormat3andDBIDFormat2messageswill

beoccurringinbothMUFs

AspecialformofDataSharing

Primary

Shadow

Page 20: Advanced DBA – High Availability for MUF

20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ShadowTechnology– Plannedoutage(cont’d)

§ Recommendyoubringdownthe14.0MUFinstanceassoonasyoucan

§ ThenrestarttheShadowMUFas14.0forfallback

§ Thisupgradeprocessissupported,butitisnotthepathweexpecttheclientstotake– UpgradepathshouldnotbedonewithtwoMUFsup

AspecialformofDataSharing

Primary

Shadow

Page 21: Advanced DBA – High Availability for MUF

21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ShadowTechnology– OtherConsiderations

§ ProductssuchasCA7andCA11havethebuilt-inlogictorecognizeaMUFfailureandautomaticallyreconnecttotheShadowwithoutlossofinformation

§ CADatacomprovidesasuiteof“online”utilitiessothatitemslikedatareorganizationaresupportedwhilethedataisinuse– Thesefunctionsarenotallowedwhenrunningdatasharingmodefor

twoormoreMUFinstancesatthesametime

AspecialformofDataSharing

Page 22: Advanced DBA – High Availability for MUF

22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

ShadowTechnology– OtherConsiderations(cont’d)

§ HowAreClientsUsingShadow?– Largenumberofsiteshavenotimplementedthis– Fortheoneswhohave,probablyover90%usetheunplannedversion

ofShadow(noCFstructure)– Theremaining5-10%usetheplannedoutageoftheShadowMUF

(requiresCFstructure)

AspecialformofDataSharing

Page 23: Advanced DBA – High Availability for MUF

23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Active-Query(Active-ActiveArchitecture)

Page 24: Advanced DBA – High Availability for MUF

24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology

§ Active-Standby

§ Active-Query

§ Active-Active

ActiveArchitecture

Page 25: Advanced DBA – High Availability for MUF

25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology– ActiveStandby

§ Primaryimagerunsinfullupdatemode– Usertransactionsaredirectedbyarouterto

thecurrent“primary”datamanager– Dynamicswitchingcanoccurtoshiftworkload

iftheprimarydatamanagerfails– Secondary“standby”imagedoesnotprocess

anyuserwork– Allusersissuedatarequestsontheprimary

image– Datachangesarereplicatedinatimelyfashion

fromtheprimarytothestandbyimage

ActiveArchitecture

Page 26: Advanced DBA – High Availability for MUF

26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology– ActiveQuery

§ Primaryimagerunsinfullupdatemode– Userupdatetransactionsaredirectedbya

routertothecurrent“primary”image– Dynamicswitchingcanoccurtoshift

workloadiftheprimaryimagefails– Userquerytransactionscanbedirectedto

the“query”imagewhichallowsworktobeprocessed

– Datachangesarereplicatedinatimelyfashionfromtheprimarytothequerydatamanagementimage

ActiveArchitecture

Page 27: Advanced DBA – High Availability for MUF

27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology

§ ComponentsUsed

§ Prerequisites

§ MQTSOverview

§ OperationalOverview

§ SampleOutput

ActiveQuery– DatacomV14.02

Page 28: Advanced DBA – High Availability for MUF

28 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology- Components

§ ChangeDataCapture(CDC)– Builtinfacilitytocapturechangesforselectedtables– ChangesstoredinaDatacomdatabaseasTSNandMNTrows

§ MQTransportService(MQTS)- PartofIPC15.0– NewIPCfacilitytoenableDatacomcomponentstointeract

withIBMMQ

§ NewCDCRemoteReplicationcomponent– NewDatacomdeliverablesthatmovethedatafromtheCDC

acrossMQtoatargetMUF

ActiveQuery– DatacomV14.02/IPCV15.0

Page 29: Advanced DBA – High Availability for MUF

29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology- Prerequisites

§ SourceMUFenvironment

§ TargetMUFenvironmentsynchronizedtosourceMUF

§ MQsubsystemsforeachenvironment– MQqueuesdefinedforsendingfromsourcetotargetsystem

§ IPC15.0installed(MQTS)

§ CDCremotereplicationservicesinstalled– RO81655forR14– RO81529forR15

ActiveQuery– DatacomV14.02/IPCV15.0

Page 30: Advanced DBA – High Availability for MUF

30 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology- MQTS

§ OperatesonIBMMQqueues– RequiresMQsetup,partofIPC15.0(compatiblewithDB14.0and15.0)

§ MQTSusesaworkloadIDtoconstructtheMQqueuenames– CAMQTS.queue.workloadID– Wherequeueis:

§ SOD– Source,outgoing,data(connectswithremote’sTID)§ SID– Source,incoming,data(connectswithremote’sTOD)§ TOD– Target,outgoing,data(connectswithremote’sSID)§ TID– Target,incoming,data(connectswithremote’sSOD)§ XQ– Transmissionqueue

ActiveQuery– DatacomV14.02/IPCV15.0

Page 31: Advanced DBA – High Availability for MUF

31 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology– MQTS(cont’d)

§ MQTStoMQChannels

§ MQTSusestheworkloadIDtoconstructtheMQchannelnames– CAMQTS.channel.workloadID– Wherechannelis:

§ HA– SystemAtoBcommunication§ HB– SystemBtoAcommunication

§ Remote’schannelnamesmustmatchlocal’schannelnames

ActiveQuery– DatacomV14.02/IPCV15.0

Page 32: Advanced DBA – High Availability for MUF

32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology– MQOverviewActiveQuery– DatacomV14.02/IPCV15.0

Example:WRKLD03MQQueueRelationshipsforWorkload

Page 33: Advanced DBA – High Availability for MUF

33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology– MQOverviewActiveQuery– DatacomV14.02/IPCV15.0

RemoteReplicationOperationalOverview

Page 34: Advanced DBA – High Availability for MUF

34 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology– MQTS(cont’d)

§ DBCDSPR- TheSender– Providecontrolstatementstogive:

§ CDCDBIDtoprocess§ TheMQTSWorkloadID§ Otherparameterstocontrolbuffersizes,waitlimits,retrycounts,etc.

– ConnectstothesourceMUF– ConnectstoMQviaMQTSSEND– SendschangeddatatothereceiverviaMQ– Respondstoconsolecommands

ActiveQuery– DatacomV14.02/IPCV15.0

Page 35: Advanced DBA – High Availability for MUF

35 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology– MQTS(cont’d)

§ DBCDRPR– TheReceiver– Providecontrolstatementstogive:

§ TheMQTSWorkloadID§ Otherparameters

– ConnectstothetargetMUF– ConnectstoMQviaMQTS– GeneratesURTsforthetargetMUF– ReceivesMQdataviaMQTSRECEIVE– AppliesupdatestothetargetMUF– Respondstoconsolecommands

ActiveQuery– DatacomV14.02/IPCV15.0

Page 36: Advanced DBA – High Availability for MUF

36 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleOutputSenderActiveQuery– DatacomV14.02/IPCV15.0

Page 37: Advanced DBA – High Availability for MUF

37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleOutputSender(cont’d)ActiveQuery– DatacomV14.02/IPCV15.0

Senderthroughputstatistics,responsetoSTATUScommand

Page 38: Advanced DBA – High Availability for MUF

38 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleOutputReceiverActiveQuery– DatacomV14.02/IPCV15.0

Receivermessagesatstartup

Page 39: Advanced DBA – High Availability for MUF

39 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SampleOutputReceiver(cont’d)ActiveQuery– DatacomV14.02/IPCV15.0

Receiverthroughputstatistics,responsetoSTATUScommand

Page 40: Advanced DBA – High Availability for MUF

40 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RemoteReplicationTechnology- Summary

§ NewMQTransportServiceprovides– MQwrappersothatsender/receiverdon’thavetohaveMQknowledge

§ CDCusedtocapturechangesatsource

§ Senderusedtopackagesourcechangesandsendtoreceiver– OncesentdeleteschangesfromsourceCDC

§ ReceiverusedtotakepackagedchangesfromMQandapplytotargetMUF– OnceapplieddeletespackagefromMQ

ActiveQuery– DatacomV14.02/IPCV15.0

Page 41: Advanced DBA – High Availability for MUF

41 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

SummaryAFewWordstoReview

ExperiencesVarioussiteshasusedthesefunctionstokeeptheirdatabaseenvironmentavailable24x7foranumberofyears.

KeyTopicsIntoday’sworld,databaseenvironmentsmustbeabletoprovide24x7access.

FindingsCADatacomShadowMUFdelivershigh-availabilitywhilethenewRemoteReplicationfeaturesetsthebaseforcontinuousavailability.

Page 42: Advanced DBA – High Availability for MUF

@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.42 @CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.42

MainframeandWorkloadAutomation

FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI

Page 43: Advanced DBA – High Availability for MUF

43 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

RecommendedSessionsSESSION# TITLE DATE/TIME

MFX92S StrategyandVisionforCADatacomandCAIdeal 11/16/2016at12:45pm

MFX93S What’snewinCADatacom 11/16/2016at1:45pm

MFX94S ReducingTCOwithDatacomCompression(Presspack) 11/16/2016at3:00pm

MFX95SA ModernizingtheCADatacomdata – SQLAccessPartI 11/16/2016at3:45pm

MFX95SB ModernizingtheCADatacomdata – SQLAccessPartII 11/16/2016at4:30pm

MFX96S CADatacom/ADInstallation/UpgradeandMaintenance 11/17/2016at12:45pm

MFX97S CADatacom/ADReportUtilization,andinformationgatherforSupport 11/17/2016at1:45pm

MFX98SUsingSysview tomonitorandmeasureyourCADatacomenvironment– ADandDB

11/17/2016at3:00pm

MFX99S BirdsofaFeather/StumptheTechie! 11/17/2016at3:45pm

Page 44: Advanced DBA – High Availability for MUF

44 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Questions?

Page 45: Advanced DBA – High Availability for MUF

45 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

Thankyou.

Stayconnectedatcommunities.ca.com

Page 46: Advanced DBA – High Availability for MUF

46 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD

©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.

Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.

ForInformationalPurposesOnlyTermsofthisPresentation