2016 mysql state of the dolphin
TRANSCRIPT
Copyright©2015,Oracleand/oritsaffiliates.Allrightsreserved.|
StateoftheDolphin
DavidGilfillan/MarkSwarbrick
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
AModernDatabasefortheDigitalAgeDigitalDisruptors&LargeEnterprisesRelyonMySQLtoInnovate
3
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 4
Agenda08:30–09:15 RegistraAonandWelcomeCoffee09:15–09:45 IntroducAon-DavidGilfillanMarkSwarbrick09:45–10.30 DiscoverOracleMySQLCloudService10:30–10:45 MySQLCommercialOffering10:45–11:15 CoffeeBreak11:15–11:45 OracleMySQLCloudService:FocusonSecurity11:45–12:45 MySQLScalabilityandHighAvailability12:45–13:00 Q&A13:00–14:00 EndofEvent&Lunch
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
TheyScalewithMySQL
MobileNetworkSupporAngOver800MillionSubscribers
1.7BillionAcAveUsers 100TBofUserDataforPayPal
IDsProcessedfor1BillionCiAzens
850MillionCandyCrushGamePlays/Day
2BillionEvents/DayforBooking.com
5
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
EuronextMarketsTransacQonClearing
• UniversalClearingSystem:compensaQonenginefortheEuronextcashandderivaQvesmarketsintheEurozone• HighlymissioncriQcalfinancialapplicaQon• ImplementaQonofanOpenSourcestackwithMySQLEnterpriseEdiQon• 1to2milliondailybusinesstransacQons–testedfor6+million• Geographicalredundancy• DrasQcTCOreducQon&architecturesimplificaQon• Increasedperformance,scalability&reliability
6
ImplementedbyAtos
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
MySQL5.7:DesignedforWeb,Mobile&CloudApplicaQons
7
HybridDatabaseBestofbothworlds:RDBMSbenefits+flexiblemanagementofdocuments
SaveTime,Efforts&CostsNumerousnewfeaturesand
enhancementsimprovemanageability
ScalableFoundaAonforYourBusinessMySQL5.7is3xfasterthanMySQL5.6.Providesareliable
&scalablefoundaQonforyourapplicaQons
EnhancedSecuritySecurebydefault.Advancedsecurityfeatures
forincreasedprotecQon&compliance
MySQL5.7
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 8
HybridDatabase:RockSolidReliability+Flexibility
MySQL5.7
JSONSupport
MySQLDocument
Store
RDBMSProven,transacAonal,secureComplexJOINsandqueriesExtensiveoperaAonaltools
NoSQLSoluAonsFlexible.Easy-to-use.
Schema-lessdocumentstorage
ModernApplicaAonsAgileDevOpswithrobustdataprotecAon&security
HybridDatabaseNotrade-offs,bestofbothworlds.ACIDproperQes&reliabilityofRDMS+flexibledocumentmanagement
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 10
MySQLCluster7.5
• NodeSizesof128TB• ReadOpQmizedTables• GlobalTables
CapacityandScaleOut
• MySQL5.7• JSONDataType• GeneratedColumns• Records-Per-KeyOpQmizaQon
ImprovedSQL
• ImprovedReporQng• ImprovedLogging• ImprovedVisibility• ImprovedDebugging• ImprovedRestore
Management
RC
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
MySQL5.7–Improvementsacrosstheboard
• ReplicaQon• InnoDB• OpQmizer• Security• PerformanceSchema• GIS
• Triggers• ParQQoning• New!SYSSchema• New!JSON• Performance
12
200+new
features
Intotal!
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 13
ThecharactersetfortheWeb
MySQL8.0:UTF-8
• New!SupportforthelatestUnicode9.0• Per-countrycollaQonrules– AccentSensiQve– CaseSensiQve
• BasedonUCADUCET• UTF8MB4asthedefaultcharacterset– ProjectstartedinMySQL5.7– Manyimprovementstoreduceperformanceimpact
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 14
MySQL8.0:InvisibleIndexes
• Indexesare“hidden”totheMySQLOpQmizer– Notthesameas“disabledindexes”– ContentsarefullyuptodateandmaintainedbyDML
• Twousecases:– SopDelete(RecycleBin)– StagedRollout
FeatureRequestfromDBAs
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
MySQL8.0:SecurityRoles• FullyFuncQon,Flexible,ProperlyArchitectedRoles• CreateandDropRoles,GranttoRoles• GrantRolestoRoles,GrantRolestoUsers• LimitHoststhatcanuseroles,DefineDefaultRoles• Decidewhatrolesareapplicableduringasession• AndevenvisualizeRoleswithSQLfuncQonROLES_GRAPHML()
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 16
MySQL8.0:AtomicityinPrivileges
• PrivilegeTablesnow100%InnoDB• UserManagementDDLsAtomic– CREATEUSER– ALTERUSER– RENAMEUSER– DROPUSER– GRANT– REVOKE
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
• IncreasedReliability• BuiltonInnoDB– NoFRMfiles– NoDB.OPTfiles– NoTRGfiles– NoTRNfiles– NoPARfiles– MyISAMnotrequired
• AtomicDDL– BeuerReplicaQon– Simplifiesserveredgecases
• MDLforForeignKeys• FlexibleMetadataAPI– Easierpathtoaddingnewfeatures
• Beuercross-plavormexperience– NodependenciesonfilesystemsemanQcs
17
MySQL8.0:NaQveDataDicQonary
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 18
MySQL8.0:PerformanceSchemaIndexes
• AllowsformoreefficientaccesstoPerformanceSchematables• Atotalof115indexesacross93tables• Addszerooverhead– Aphysicalindexisnotmaintainedinternally– ImplementaQonofindexestrickstheopQmizerintobeuerexecuQonplan
FeatureRequestfromDBAs
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 19
MySQL8.0:PerformanceofSYSSchema
0 5 10 15 20 25 30 35 40
QueryTime MySQL8.0
MySQL5.7
SELECT*FROMsys.session1000acQvesessions
TimeinSeconds(Lowerisbeuer)
Upto30xFaster!
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 20
100schemasx50tables(5000tables)MySQL8.0:PerformanceofInformaQonSchema
0 0.5 1 1.5 2 2.5 3 3.5 4
CountAllSchemas
Schemaaggregatesizestats
AllDynamicTableInfo
AllStaQcTableInfo
AutoIncrementsNearLimit
CountAllColumns
CountAllIndexes
MySQL8.0
MySQL5.7
TimeinSeconds(Lowerisbeuer)
Upto30xFaster!
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
• New!SourcecodedocumentedwithDoxygen
• New!PluginInfrastructure!• ExpandedGISSupport• ExpandedQueryHintsSupport• ImprovedScanQueryPerformance
• ImprovedBLOBStorage
• ImprovedMemcachedInterface
• ScalabilityImprovements• ParserRefactoring• New!DocumentStore
• ImprovementstoTemporaryTables
• C++11andToolchainImprovements
• ReplicaQonApplierThreadProgressReports
• GTID_PURGEDalwaysseuable
21
MySQL8.0:Allthisandmore….
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLGroupReplicaQon“Mul3-masterupdateanywherereplica3onpluginforMySQLwithbuilt-inconflictdetec1onandresolu1on,automa1c
distributedrecovery,andgroupmembership.”
• AcQve/AcQveupdateanywhere• Distributedfaulttolerance• AutomaQcserverfail-over• AutomaQcreconfiguraQon• AutomaQcconflictdetecQon&resoluQon
23
AppServerswithMySQLRouter
MySQLGroupReplicaQon
MySQLShellSetup,Manage,Orchestrate
RC
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 25
Scale-Out
Ease-of-Use
Out-of-BoxSoluQonMySQL
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 26
Asingleproduct:MySQL• Allcomponentscreatedtogether• Testedtogether• Packagedtogether
FlexibleandModern• C++11• ProtocolBuffers• Developerfriendly
MySQLInnoDBCluster–Goals
Easytouse• Asingleclient:MySQLShell• Easypackaging• Homogenousservers
Scale-out• Shardedclusters• FederatedsystemofNreplicasets• Eachreplicasetmanagesashard
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 28
ReadScale-Out
AsyncReplicaQon+AutoFailover
WriteScale-Out
Sharding
S1
S2
S3
S4
MySQLVision–4Steps
Timeline
MySQLDocumentStore
RelaQonal&DocumentModel
MySQLHA
Out-Of-BoxHA
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
MySQL
InnoDBcluster
MySQLInnoDBCluster–Architecture-S2
M
M M
MySQLConnectorApplicaQon
MySQLRouter
MySQLConnectorApplicaQon
MySQLRouter
MySQLShell
HA
GroupReplicaAon
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
S1 S2 S3 S4 S…
M
M M
MySQLConnectorApplicaQon
MySQLRouter
MySQLConnectorApplicaQon
MySQLRouter
MySQLShell
HA
MySQLInnoDBCluster–Architecture-S3 MySQL
InnoDBcluster
Read-OnlySlaves
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
S1 S2 S3 S4 S…
M
M M
MySQLConnectorApplicaQon
MySQLRouter
MySQLConnectorApplicaQon
MySQLRouter
MySQLShell
HA
ReplicaSet(Shard1)
S1 S2 S3 S4 S…
M
M M
MySQLConnectorApplicaQon
MySQLRouter
HA
ReplicaSet(Shard2)
S1 S2 S3 S4 S…
M
M M
HA
ReplicaSet(Shard3)
MySQLConnectorApplicaQon
MySQLRouter
MySQLInnoDBCluster–Architecture-S4 MySQL
InnoDBcluster…
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLConnectorApplicaQon
MySQLConnectorApplicaQon
MySQLShell
MySQLConnectorApplicaQon
MySQLConnectorApplicaQon
MySQLInnoDBCluster–Architecture
MySQLInnoDBcluster
MySQLEnterpriseMonitor
…
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
NEW!OracleMySQLCloudServiceSimple,Automated,Integrated&Enterprise-Ready
• The#1OpenSourceDatabaseinOracleCloud• OnlypubliccloudintegraQngMySQLEnterpriseEdiQon• Rapidly,securelyandcost-effecQvelydevelop&deploymodernMySQL-basedapplicaQons
33
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.|
HighestLevelsofSecurity Scalability&AvailabilityExpertMySQL
TechnicalSupport
IntegraAonintoOracleCloudEnvironment
Hybriddeploymentsacrosscloud&on-premises LowerTCO
34
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 3535
OracleMySQLCloudService:ProductOverview
*Willbeavailableinfuturereleases
PaaS
Compute
OraclePremierSupport
Compute,Storage,Network
MySQLEnterpriseEdiQon
DatabaseAdministraAon
AutomatedProvisioning
PushBuuonPatching
1-ClickInstanceManagement
EnterpriseMonitoring
Backup&Recovery
AutomatedBackup
Point-in-QmeRecovery
On-demandSnapshot
Scalability
ElasQcCompute
ElasQcStorage
EnterpriseThreadPool
ElasQcReplicaQon*
HighAvailability
ReplicaQon
ReplicaQonMonitor
MulQ-ADSupport*
Security
NetworkAccessControl
EnterpriseFirewall
EnterpriseAuthenQcaQon
EnterpriseEncrypQon&TDE*
EnterpriseAudit
ManagementAccess
DataAccess
CLI
RESTAPI
OracleCloudConsole
MySQLTools
On-premiseApplicaQons
35
Copyright©2016,Oracleand/oritsaffiliates.Allrightsreserved.| 36
New“BornintheCloud”MySQLApplicaQonsBuildnewappsrelyingonthe#1OpenSourceDB,onOracle’senterprise-classcloud
Lip&Ship:MigrateExisQngMySQLApplicaQonsMigratefromon-premisesorother3rdpartycloudstoensuresecurity,flexibility&opQmizemanagement
HybridCloudDeployments
• Easilymoveworkloadsbetweenonprem&cloud,usingthesameDBplavorm
• PortabilityforMulQ-Qerarchitectures(e.g.deployedacrossboththecloud&on-premises)
Dev/Test• Spinupdatabaseinstancesinminutes• Teardownwhennotneeded
OracleMySQLCloudService:RecommendedUseCases
NewApps
SaaSAppspoweredbyMySQLSaaSApplicaQonspoweredbyOracle’sMySQLCloudServiceforglobalscalability