Axxana NoCOUG 11-2017nocoug.org/download/2017-11/Azagury_Squeezing_the... · 12c Disaster Recovery...
Transcript of Axxana NoCOUG 11-2017nocoug.org/download/2017-11/Azagury_Squeezing_the... · 12c Disaster Recovery...
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
SqueezingtheMaxoutof12cDisasterRecovery
AlainAzagury,VPR&DYossiNixon,OracleACEAssociate&ChiefDBANovember2017
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana20172
AlainAzagury,VPR&DØ 30-yearsofexperiencein
Storage,Virtualization,Cloud,Systems,MemoryManagement,etc.
Ø IBMMasterInventor,withover15patents
Ø Avidcyclist
Speakers
Confidential
YossiNixon,ChiefDBAØ OracleACEAssociate,
DatabaseArchitectandOracleDBAwith20yearsofexperience.Specialties:DBA&InfrastructureArchitect;DisasterRecoveryStrategyDevelopment; Monitoringandtroubleshooting;DesigningandWritingcode....
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
DataGuardOverviewDataGuardTermsActiveDataGuardFarSyncDataGuardDRenhancementsinOracle12cLessonsLearnedTheRisk-DistanceConundrumAxxana’s PhoenixTechnologyPuttingitalltogether
Agenda
©AllRightsReserved.Axxana2007-2017CONFIDENTIAL
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
DataGuardOverview
Primary RemoteStandby
SYNC/ASYNC
©AllRightsReserved.Axxana2007-2017CONFIDENTIAL
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2007-2017CONFIDENTIAL
DataGuardTerms
RedoCompression
SYSDGRole
FlashbackDatabaseonDG
FastStartFailoverFSFOOnline
StandbyDatabase
FileRename
Switchover/Failover
SnapshotStandby
CascadedRedoRMAN
DuplicatefromActive
Database
AutomaticGap
ResolutionActiveDataGuard
Read-OnlyPhysicalStandby
FarSyncStandbyRedoLogs
Real-timeapply
ManagedRecovery
FastSync
DataGuardBroker
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana20176
ActiveDataGuardFarSync
Confidential
FarSync
Primary RemoteStandby
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana20177
FarSync:light-weightOracleinstance:standbycontrolfile,standbyredologs,archivedredologs,nodatafilesReceivesredosynchronouslyfromprimary,forwardsredoasynchronouslyinreal-timetostandbyUponFailover:Async standbytransparentlyobtainslastcommittedredofromFarSyncandapplies:zerodatalossfailoverMinimalCPU,memory,orI/O– Norecovery,nodatafiles,productionneverrunsontheFarSyncinstance
ActiveDataGuardFarSync
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
FarSyncsummary
• Verypromisingforlongdistancereplicationifdatalossisnotacceptable
• Upto60%performancegain(DMLonlyworkloads)with25msnetworklatency
• Lightweightandeasytodeploy(virtualmachine)• Iflatency<5msmostlikelyyoudon’tneedFarSync• Therearestillbugsthatneedfixing
RedoTransport
25ms
Redo
Far Sync
sync async
©AllRightsReserved.Axxana2007-2017CONFIDENTIAL
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
FarSyncSyntax
©AllRightsReserved.Axxana2007-2017CONFIDENTIAL
SQL > ALTER DATABASE CREATE FAR SYNC INSTANCE CONTROLFILE AS ‘/tmp/farsync.ctl’;SQL > create pfile=‘/tmp/initfs.ora' from spfile;
SQL > ALTER DATABASE ADD STANDBY LOGFILE THREAD 2 SIZE 52428800;SQL > create spfile from pfile=‘/tmp/initfs.ora';
DGMGRL> ADD FAR_SYNC fs AS CONNECT IDENTIFIER IS fs;
DGMGRL> EDIT DATABASE pdb SET PROPERTY RedoRoutes = '(LOCAL : fs SYNC ALT =(sdb ASYNC FALLBACK))';
https://oracledba.blogspot.com/2017/08/creating-far-sync-instance-step-by-step.html
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
LabEnvironmentSetup
Oracle12.1EnterpriseEditionActiveDataguard withFarSyncASMRequestedtailoredpatchesforFarSyncOracleLinux7.2
ServerenvironmentPrimary– 2xLenovo X3550M5(2xXeonE5-2620V32.4Ghz,32GBmemory,4SSDs)Secondary – Identical toPrimaryFarSync – Two configurations
i7/16GB/dual SSDor,Quad Xeon/32GB/4SSDs
Neutralizednetworklatencyissues10GbEconnectivityAllsystemsarecollocated
1to16instancesUpto8instancesoneachprimary/secondaryserverUpto16instancesonFarSyncserver
Primary StandbyFarSync
10
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
SetupObservations
FarSync
Primary StandbyFarSync
AlternateAlternateOppositedirection
MaximumAvailability
Nomultiplex
RMANdeletionpolicy
©AllRightsReserved.Axxana2007-2017CONFIDENTIAL
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201712
✅ MemoryConsumption
✅ Networking
✅ LatencyreductionthroughFastSync
✅ CPUConsumption
✅ FarSyncIOpatterns
LessonsLearned
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201713
ConfigurationUsedtherecommendedSGAallocation
300MBSGA
TheFarSyncinstancerequiresaverysmallSGAfootprint(muchlessthanproduction)
NodatabasefilesNomediarecovery
Considerallocatingmemoryforstoragecache(later…)
MemoryConsumption
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201714
ConfigurationJumboframesmakeahugedifference
WeusedMTU9000Bondingtwo10GbEports
NetworkTrafficisConsistentwithLogFileWritethroughput
Byteswritten=BytesreceivedbyFarSyncInstance=BytesSentbyFarSyncInstance
TuneLOG_ARCHIVE_MAX_PROCESSEStomaximizethroughput
Transportcompressionwillreducetraffic… buttakesitstollonCPUcycles…
Networking
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201715
Standbyacknowledgestheprimaryassoonasitreceivesredoinmemory
WithoutwaitingfordiskI/Otoastandbyredologfile
Maingoalisshorteningthetotalround-triptimebetweenprimaryandstandbyWedidn’tseeyetsignificantbenefitfromFastSync(NOAFFIRM),needmoreexperimentation!
LatencyReduction– FastSync
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201716
FollowedOracle’srecommendationReducingtheCPU_COUNTduringtestinghadnoeffectontheperformanceoftheFarsyncinstance
VirtualKeeperofTimeProcess(es)(VKTM)arehighCPUconsumer
OneprocessperDatabaseandASMinstancesSeveral“solutions”havebeenrecommendedtoreduceitspriority✅SignificantimprovementachievedwhenFarSync
runsmultipleinstances!
TransportcompressiontakesitstollonCPUcycles…
CPUConsumption
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
RedoentriesstoredinStandbyRedoLogsandArchivesFarSyncdoesnottakeadvantageoflog_buffer memorytoreduceI/O
IOsmaybereducedthroughsmartcachingtechniques…
ReduceRedoLogmembers
17
FarSyncIOPatterns
Confidential
StandbyRedoLogs
Archives
1 2
3 4
Cache
FarSync
RemoteStandbyPrimary
Read
Write
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201718
AdditionalObservations
Confidential
FarSync
Primary StandbyFarSync
AlternateAlternateOppositedirection
MaximumAvailability
Nomultiplex
RMANdeletionpolicy
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201719
UsingDataGuardBrokerisstronglyrecommended,especiallywhenusingFarSync
No“easy”waytocollect database statistics,sinceFarSyncisnotadatabase!
WhenusingFarSync,usethelatestpatchsets
RollingForwarda PhysicalStandbyDatabaseUsingtheRECOVERFROMSERVICEiscool(FirstintroducedinOracle12.1)
AdditionalObservations (cont.)
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
BlockComparisontoolinDGMGRLMultipleObserversSupportsAWRonActiveDGforthestandbyDataGuardStandbyCreationwithdbcaMulti-InstanceRedoApplyFastFailover- DataGuardtakesoversessiondrainingPasswordfileismanagedandtransportedviatheRedomechanismAlternateprioritization
Oracle12.2NewFeatures
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
InMemoryColumnstoreworkswithmulti-instanceredoapplyMulti-instanceredoapplysupportwithBlockChangeTracking(BCT).GlobalTemporaryTablesupportfromStandby.DMLoperationsonStandby– RedirectiontoPrimarywithoutACIDcompromise.Preservebuffercacheduringrole-change.Nologgingenhancement- PerformancemodeandAvailabilitymode.RMAN- Refreshastandbyfromprimary/backupusingsingleRECOVERcommand
Oracle18cNewFeatures
©AllRightsReserved.Axxana2007-2017CONFIDENTIAL
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201722
DistanceBetweenPrimaryandFarSync
Distance-RiskConundrum
Confidential
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201723
Axxana– TransparentLayeredProtection
Confidential
PhysicalProtection
MultipleNetworkConnectivityWAN,LAN,Wi-Fi,4G
BatteryPowered
DataSafe
PhoenixOSSmartDR
FarSyncVirtualMachine
ManagedbytheUser
TransparentlyManaged
byAxxana
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201724
ActiveDataGuardFarSyncwithAxxana
Confidential
Primary RemoteStandby
ASYNCover10GbE
ZeroDistanceSYNC Recoveryover
Cellular/1GbE/10GbE
AxxanaProtectedFarSync
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana2017
WhatisAxxanaallabout?
Averyresilientflashbasedstorageandserverina(black)boxDirectfireofupto1100°Cforanhour250°Cfor6hours5mdroponreinforcedconcrete2.3tonsofweight1mwaterpressurePierceforceof230kgrodwithcross-sectionof.25cm2 droppedfrom3mheightSelfsufficientpowersourceIndependentcellularandWiFicommunication
Inanutshell– abunkerinabox25
Title
©AllRightsReserved.Axxana2017©AllRightsReserved.Axxana201727
WinningCombination
Confidential
AxxanaBlackBoxPhoenixOS
OracleActiveData
GuardFarSync
✅ ZeroDataLossatanydistance
✅ NoRTT(latency)Compromise
✅ TrueProtectionagainstLinkFailure
✅ ApplicationConsistencyGuarantee