MySQL InnoDBCluster · commitment to deliver any material, code, or functionality ... – •MySQL...
Transcript of MySQL InnoDBCluster · commitment to deliver any material, code, or functionality ... – •MySQL...
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.
MySQLInnoDB ClusterMySQLHAMadeEasy!
MiguelAraújoSeniorSoftwareDeveloperMySQLMiddlewareandClientsFOSDEM’18- February04,2018
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
SafeHarborStatementThefollowingisintendedtooutlineourgeneralproductdirection.Itisintendedforinformationpurposesonly,andmaynotbeincorporatedintoanycontract.Itisnotacommitmenttodeliveranymaterial,code,orfunctionality,andshouldnotberelieduponinmakingpurchasingdecisions.Thedevelopment,release,andtimingofanyfeaturesorfunctionalitydescribedforOracle’sproductsremainsatthesolediscretionofOracle.
3
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
ProgramAgenda
MySQLInnoDB Cluster
MySQLShell/AdminAPI
LiveDemo– Settingupaclusterinasnap!
LiveDemo– Automatic fail-over!
Summary
1
2
3
4
5
4
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
ProgramAgenda
MySQLInnoDB Cluster
MySQLShell/AdminAPI
LiveDemo– Settingupaclusterinasnap!
LiveDemo– Automaticfail-over!
Summary
1
2
3
4
5
5
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
100%Virtuallyallorganizationrequiretheirmostcriticalsystemstobehighlyavailable
6
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved. 7
• HighAvailability:critical factor• Replication asacommonsolution• MySQLhassupportfor:– Classicmaster-slave replication– DRBDS–OtherOSorVMsolutions…
MySQLInnoDB Cluster:Background
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
MySQLInnoDB Cluster:Background
8
• HighAvailability:critical factor• Replication asacommonsolution• MySQLhassupportfor:– Classicmaster-slave replication– DRBDS–OtherOSorVMsolutions…
GroupReplication !
• Update-everywhere(m-m)• Virtuallysynchronousreplication• Automaticserverfail-over– Distributedrecovery– Groupreconfiguration
• PoweredbyaGCS:üImplementationofPaxos
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
MySQLInnoDB Cluster:Background
• Challengingtask– Noteasytosetupandmaintain– Technicalknowledgeneeded– Howtoconfiguretheapplications?– Howtointegrateallthecomponents?
9
? ?
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
MySQLInnoDB Cluster:Vision
10
– EngineeringTeam
“Asingleproduct— MySQL— withhighavailabilityandscalingfeaturesbakedin;providinganintegratedend-to-endsolutionthatiseasytouse.”
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved. 11
Scale-OutHighPerformance
Ease-of-UseBuilt-inHA
Out-of-BoxSolutionEverythingIntegrated
MySQLInnoDBcluster
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved. 12
MySQLGroupReplication
InnoDB Cluster
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved. 13
AppServerswithMySQLRouter
InnoDB Cluster
MySQLGroupReplication
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved. 14
AppServerswithMySQLRouter
InnoDB Cluster
MySQLGroupReplication
MySQLShellSetup,Manage,Orchestrate
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved. 15
AppServerswithMySQLRouter
InnoDB Cluster
MySQLGroupReplication
MySQLShellSetup,Manage,Orchestrate
Clients
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved. 16
AppServerswithMySQLRouter
InnoDB Cluster
MySQLGroupReplication
MySQLShellSetup,Manage,Orchestrate
OneProduct
FullStackHASolution
Easytouse!Clients
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
ProgramAgenda
MySQLInnoDB Cluster
MySQLShell/AdminAPI
LiveDemo– Settingupaclusterinasnap!
LiveDemo– Automaticfail-over!
Summary
1
2
3
4
5
17
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
MySQLShell:Intro/Features
• Interactivemulti-languageinterfacethatsupportsdevelopmentandadministrationfortheMySQLServer
• Canbeusedtoperformdataqueriesorupdates,andadministrationoperations:
ü Scriptable“DevOps”APIs
üUnifiedInterfaceforMySQLDevelopersandDBAs:onetool!
• Intuitiveandeasytouse
18
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
MySQLShell:Features
• Multi-languagesupport– JavaScript,PythonandSQL– Bothinteractiveandbatchoperations
• DocumentandRelationalmodels– Supportstheclassicrelationalmodel–ModernfluentAPIfortheMySQLDocumentStore• CRUDandRelational
19
MySQLDevelopment
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
MySQLShell:AdminAPI
• AdministrationAPI– CreationandManagementofInnoDB Clusters– Hidesthecomplexityof:• Configuration• Provisioning• Orchestration
– Simpleandstraight-forward– Doesn’trequireMySQLexpertise– Flexible,powerfulandsecure– AvailableinbothJavaScriptandPython
20
MySQLAdministration
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
ProgramAgenda
MySQLInnoDB Cluster
MySQLShell/AdminAPI
LiveDemo– Settingupaclusterinasnap!
LiveDemo– Automaticfail-over!
Summary
1
2
3
4
5
21
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.
Settingupaclusterinasnap!AdminAPILiveDemo!
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
ProgramAgenda
MySQLInnoDB Cluster
MySQLShell/AdminAPI
LiveDemo– Settingupaclusterinasnap!
LiveDemo– Automatic fail-over!
Summary
1
2
3
4
5
23
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.
AutomaticFailover!AdminAPILiveDemo!
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
ProgramAgenda
MySQLInnoDB Cluster
MySQLShell/AdminAPI
LiveDemo– Settingupaclusterinasnap!
LiveDemo– Automaticfail-over!
Summary
1
2
3
4
5
25
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
Summary
• MySQLInnoDB ClusterisTHE built-inHA solutionforMySQL:
• Full-stack:HighAvailabilityout-of-the-box
• Easytouse:usability asatopconcern
• MySQLShellwithAdminAPI
• BringstogetherdevelopersandDBAs
• EasilyconfigureandadministerInnoDB clusters
• Powerful,flexibleandsecure
26
Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.
Resources
• MySQLInnoDB ClusterUserguide:– http://dev.mysql.com/doc/refman/en/mysql-innodb-cluster-userguide.html
• MySQLShellUserguide:– https://dev.mysql.com/doc/refman/en/mysql-shell.html
• APIsReferencemanuals– JavaScript:https://dev.mysql.com/doc/dev/mysqlsh-api-javascript/
– Python:https://dev.mysql.com/doc/dev/mysqlsh-api-python/
• Blogging– http://mysqlserverteam.com/category/high-availability
27