Advanced DBA – High Availability for MUF
-
Upload
ca-technologies -
Category
Technology
-
view
63 -
download
3
Transcript of Advanced DBA – High Availability for MUF
World®’16
AdvancedDBA–HighAvailabilityforMUFKevinShumaVP,ProductManagementCATechnologies
MFX64E
MAINFRAMEANDWORKLOADAUTOMATION
2 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Abstract
ThissessiondescribestheavailableoptionsforsitesthatneedtokeeptheirCADatacomenvironments(MUFs)operationalforextendedperiodsoftime.ThisincludefunctionalitytocoverIPLs,systemsoutagesandevenCADatacomsoftwareupgrades.
ThissessionwillprimarilycoverthenewfeaturesavailableintheCADatacom®/DBprocessingthatallowstheCADatacomenvironment(MUF)tomigratefromoneaddressspacetoanotherwithoutanoticeableoutagetotheendusers.
KevinShuma
CATechnologiesVP,ProductManagement
3 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Agenda
WHATISHIGH-AVAILABILITYFORDATABASEENVIRONMENTS
DATASHARINGSHADOWTECHNOLOGY
ACTIVE-QUERY(ACTIVE-ACTIVEARCHITECTURE)
SUMMARY
1
2
3
4
4 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Whatishigh-availability?
“Highavailabilityisacharacteristicofasystem,whichaimstoensureanagreedlevelofoperationalperformance,usuallyuptime,forahigherthannormalperiod.”
“Ifausercannotaccessthesystem,itis- fromtheuserspointofview– unavailable.Generally,thetermdowntimeisusedtorefertoperiodswhenasystemisunavailable.”
AccordingtoWikipedia
24x7
5 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Whatishigh-availabilityfordatabaseenvironments
§ TheabilityfortheDatacomenvironment(MUF)toremainupormigratefromoneaddressspacetopanotherwithoutanoticeableoutagetotheend-user– Donotinterruptuserdataaccessfor
§ MUFfailures§ IPLs§ Softwaremaintenance§ Softwareupgrades(newreleases)§ JustabouteverythingaSYSPROG“needs”todotokeepasystemrunning
FromaCADatacomperspective
6 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Datasharingshadowtechnology
7 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
§ CADatacomsupports3differentdatasharingtechniques
§ TheShadowMUFistherecommendedandmostusedtechnique– Provides24x7failover– ProvidesmigratecapabilitiesforuseduringIPLs– Providescapabilitiesforimplementingsoftwaremaintenance– (V15.0)Providescapabilitiesforimplementinganewrelease
AspecialformofDataSharingShadowTechnology
8 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
§ PrimaryMUF– istheMUFinstanceupandenabledatthatmomentoftime
§ ShadowMUF– isthesecondinstanceoftheMUFthatisconsiderednotenabledbutrunningonsameLPARoradifferentLPARonthesameSYSPLEX
§ BothMUFssharethesamesetofdatabases(DASD)
AspecialformofDataSharing
Primary
Shadow
ShadowTechnology(cont’d)
9 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
§ XCFisusedasthemessageservicebetweentheshadowandtheprimaryMUF
§ IfXCFserviceisstoppedorabends– Possiblelossofcommunicationbetween
thePrimaryandShadowMUFispossible– ShadowMUFcannottakeover,must
beforcedtotakeover– Thisisveryrareintoday’sworld
AspecialformofDataSharing
Primary
Shadow
ShadowTechnology(cont’d)
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)
11 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ShadowTechnology(cont’d)
§ Unplannedoutage– PrimaryMUFfails– LPARfails
§ Plannedoutage– ScheduledIPL– NeedtochangeMUFstart-upoptions– Scheduledsoftwaremaintenance– Scheduledreleaseupgrade(V14toV15)
AspecialformofDataSharing
Primary
Shadow
12 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ShadowTechnology– Unplannedoutage
§ UnplannedShadowMUF– NoCFStructures– OnlyoneMUFupatatime,nointersection
oftwoMUFinstancescanoccur– NoworriesaboutMRDF,CBSandPXX
beingshared
AspecialformofDataSharing
Primary
Shadow
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
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
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)
16 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
§ PlannedShadowMUF– CFstructurerequired– TwoMUFscanbeupsotherulesforfulldatasharing
arenowenforced– CanusetheMigratecommandordotheprocess
manually– IfeitherMUFinstancefailsduringthisprocess,must
restarttheMUFinstancethatfailedASAP– EOJofeitherMUFinstanceremovestheaspectsoffull
datasharing– TimelinefortwoMUFinstancesbeingupatthesame
timeshouldbeconsideredtobebrief
AspecialformofDataSharingShadowTechnology– Plannedoutage
Primary
Shadow
17 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
§ IssueMIGRATEcommandtoconvertRemoteShadowintoafulldatasharingMUF
§ CouplerFacilityusedtosynchronizetwomemberMUFs
§ BothMUFsnowfullparticipants
ShadowTechnology– PlannedoutageLPAR
1
CICSPLEXBATCH1
CICSPLEX
XCF
LPAR
2
CICSTOR
CICSTOR
ShadowMUFPLEXforIPLCoupler
XMEM
FullAccess FullAccess
DSNZMFM1
DSNZMFM2ActiveMUF
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
19 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ShadowTechnology– Plannedoutage(cont’d)
§ Upgradefrom14.0to15.0– Recommendthecodeonlybedoneatthistime– OneMUFinstancecanbe14.0– OtherMUFinstancecanbe15.0– RecommendnotleavingbothMUFinstancesup
verylong– DBIDFormat3andDBIDFormat2messageswill
beoccurringinbothMUFs
AspecialformofDataSharing
Primary
Shadow
20 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ShadowTechnology– Plannedoutage(cont’d)
§ Recommendyoubringdownthe14.0MUFinstanceassoonasyoucan
§ ThenrestarttheShadowMUFas14.0forfallback
§ Thisupgradeprocessissupported,butitisnotthepathweexpecttheclientstotake– UpgradepathshouldnotbedonewithtwoMUFsup
AspecialformofDataSharing
Primary
Shadow
21 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ShadowTechnology– OtherConsiderations
§ ProductssuchasCA7andCA11havethebuilt-inlogictorecognizeaMUFfailureandautomaticallyreconnecttotheShadowwithoutlossofinformation
§ CADatacomprovidesasuiteof“online”utilitiessothatitemslikedatareorganizationaresupportedwhilethedataisinuse– Thesefunctionsarenotallowedwhenrunningdatasharingmodefor
twoormoreMUFinstancesatthesametime
AspecialformofDataSharing
22 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
ShadowTechnology– OtherConsiderations(cont’d)
§ HowAreClientsUsingShadow?– Largenumberofsiteshavenotimplementedthis– Fortheoneswhohave,probablyover90%usetheunplannedversion
ofShadow(noCFstructure)– Theremaining5-10%usetheplannedoutageoftheShadowMUF
(requiresCFstructure)
AspecialformofDataSharing
23 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Active-Query(Active-ActiveArchitecture)
24 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RemoteReplicationTechnology
§ Active-Standby
§ Active-Query
§ Active-Active
ActiveArchitecture
25 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RemoteReplicationTechnology– ActiveStandby
§ Primaryimagerunsinfullupdatemode– Usertransactionsaredirectedbyarouterto
thecurrent“primary”datamanager– Dynamicswitchingcanoccurtoshiftworkload
iftheprimarydatamanagerfails– Secondary“standby”imagedoesnotprocess
anyuserwork– Allusersissuedatarequestsontheprimary
image– Datachangesarereplicatedinatimelyfashion
fromtheprimarytothestandbyimage
ActiveArchitecture
26 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RemoteReplicationTechnology– ActiveQuery
§ Primaryimagerunsinfullupdatemode– Userupdatetransactionsaredirectedbya
routertothecurrent“primary”image– Dynamicswitchingcanoccurtoshift
workloadiftheprimaryimagefails– Userquerytransactionscanbedirectedto
the“query”imagewhichallowsworktobeprocessed
– Datachangesarereplicatedinatimelyfashionfromtheprimarytothequerydatamanagementimage
ActiveArchitecture
27 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RemoteReplicationTechnology
§ ComponentsUsed
§ Prerequisites
§ MQTSOverview
§ OperationalOverview
§ SampleOutput
ActiveQuery– DatacomV14.02
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
29 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RemoteReplicationTechnology- Prerequisites
§ SourceMUFenvironment
§ TargetMUFenvironmentsynchronizedtosourceMUF
§ MQsubsystemsforeachenvironment– MQqueuesdefinedforsendingfromsourcetotargetsystem
§ IPC15.0installed(MQTS)
§ CDCremotereplicationservicesinstalled– RO81655forR14– RO81529forR15
ActiveQuery– DatacomV14.02/IPCV15.0
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
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
32 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RemoteReplicationTechnology– MQOverviewActiveQuery– DatacomV14.02/IPCV15.0
Example:WRKLD03MQQueueRelationshipsforWorkload
33 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RemoteReplicationTechnology– MQOverviewActiveQuery– DatacomV14.02/IPCV15.0
RemoteReplicationOperationalOverview
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
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
36 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleOutputSenderActiveQuery– DatacomV14.02/IPCV15.0
37 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleOutputSender(cont’d)ActiveQuery– DatacomV14.02/IPCV15.0
Senderthroughputstatistics,responsetoSTATUScommand
38 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleOutputReceiverActiveQuery– DatacomV14.02/IPCV15.0
Receivermessagesatstartup
39 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SampleOutputReceiver(cont’d)ActiveQuery– DatacomV14.02/IPCV15.0
Receiverthroughputstatistics,responsetoSTATUScommand
40 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
RemoteReplicationTechnology- Summary
§ NewMQTransportServiceprovides– MQwrappersothatsender/receiverdon’thavetohaveMQknowledge
§ CDCusedtocapturechangesatsource
§ Senderusedtopackagesourcechangesandsendtoreceiver– OncesentdeleteschangesfromsourceCDC
§ ReceiverusedtotakepackagedchangesfromMQandapplytotargetMUF– OnceapplieddeletespackagefromMQ
ActiveQuery– DatacomV14.02/IPCV15.0
41 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
SummaryAFewWordstoReview
ExperiencesVarioussiteshasusedthesefunctionstokeeptheirdatabaseenvironmentavailable24x7foranumberofyears.
KeyTopicsIntoday’sworld,databaseenvironmentsmustbeabletoprovide24x7access.
FindingsCADatacomShadowMUFdelivershigh-availabilitywhilethenewRemoteReplicationfeaturesetsthebaseforcontinuousavailability.
@CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.42 @CAWORLD#CAWORLD ©2016CA.AllRIGHTSRESERVED.42
MainframeandWorkloadAutomation
FormoreinformationonMainframeandWorkloadAutomation,pleasevisit:http://cainc.to/9GQ2JI
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
44 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Questions?
45 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
Thankyou.
Stayconnectedatcommunities.ca.com
46 ©2016CA.ALLRIGHTSRESERVED.@CAWORLD#CAWORLD
©2016CA.Allrightsreserved.Alltrademarksreferencedhereinbelongtotheirrespectivecompanies.
Thecontentprovidedinthis CAWorld2016presentationisintendedforinformationalpurposesonlyanddoesnotformanytypeofwarranty. The informationprovidedbyaCApartnerand/orCAcustomerhasnotbeenreviewedforaccuracybyCA.
ForInformationalPurposesOnlyTermsofthisPresentation