Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLEnterpriseMonitorMaCLordMySQLProductManager
2
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
SafeHarborStatementThefollowingisintendedtooutlineourgeneralproductdirecLon.ItisintendedforinformaLonpurposesonly,andmaynotbeincorporatedintoanycontract.Itisnotacommitmenttodeliveranymaterial,code,orfuncLonality,andshouldnotberelieduponinmakingpurchasingdecisions.Thedevelopment,release,andLmingofanyfeaturesorfuncLonalitydescribedforOracle’sproductsremainsatthesolediscreLonofOracle.
3
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLEnterpriseMonitor:Agenda
WhyMySQLEnterpriseEdiLon?
Overview&Architecture
InstallaLon&ConfiguraLon
Features&Benefits
AddiLonalInfo&CaseStudies
4
1
2
3
4
5
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
WhyMySQLEnterpriseEdiLon?
5
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
Cloud
Web&Enterprise OEM&ISVs
6
IndustryLeadersRelyonMySQL
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
TheyScalewithMySQL
MobileNetworkSuppor?ngOver800MillionSubscribers
1.6BillionAc?veUsers 100TBofUserDataforPayPal
IDsProcessedfor1BillionCi?zens
850MillionCandyCrushGamePlays/Day
2BillionEvents/DayforBooking.com
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
Replica?on LosslessSemi-Synchronous GTIDs CrashSafe TimeDelayed Mul?-threaded Mul?-Source
InnoDB ImprovedThroughput
Default OnlineDDL FullTextSearch NoSQLAccess
M y S Q L U L l i L e s
EXPLAIN
O p L m i z e r : F a s t e r Q u e r y E x e c u L o n a n d B e C e r D i a g n o s L c s
G I S
PerformanceSchema
Security ParLLoning
WhyMySQLEnterpriseEdiLon?AlltheDatabaseFeaturesYouLove
8
J S O N
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
WhyMySQLEnterpriseEdiLon?InAddi?ontoalltheMySQLFeaturesyouLove
InsureYourDeploymentsGettheBestResultsDelightCustomers
9
ImprovePerformance&Scalability
EnhanceAgility&Produc?vity
ReduceTCO
Mi?gateRisks
GetImmediateHelpif/when
Needed
IncreaseCustomerSa?sfac?on
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
ManagementToolsAdvancedFeatures Support
• Scalability• HighAvailability• AuthenLcaLon• Audit• EncrypLon• Firewall
• Monitoring• Backup• Development• AdministraLon• MigraLon
• TechnicalSupport• ConsultaLveSupport• OracleCerLficaLons
MySQLEnterpriseEdiLon
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
Overview&Architecture
11
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLEnterpriseMonitor
12
Applica?onBigFishGamesisagloballeaderintheonlinegamesindustryanddistributesmoregamesworldwidethananyotheronlinesite.KeyBusinessBenefitMySQLQueryAnalyzerprovidesaconsolidatedviewofqueryacLviLesandexecuLondetails,andhasenabledBigFishGamestoquicklyidenLfypoorlyrunningqueriesandtackletherootcausesdirectlyintheSQLcode.WhyMySQLEnterpriseEdi?on?“WiththeMySQLQueryAnalyzer,wewereabletoiden9fyandanalyzeproblema9cSQLcode,andtripleourdatabaseperformance.Moreimportantly,wewereabletoaccomplishthisinthreedays,ratherthantakingweeks.”--KeithSouhrada,SobwareDevelopmentEngineer,BigFishGames
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
DatabaseApplicaLonGrowth• 2.1BillionInternetUsers
• 40%DataGrowth/Year
• $1TrillioneCommerce
• 600NewVideos/Minute
• 58MillionTweets/Day
SituaLon
Requirements
• Performance
• Scale-out
• AutomaLon
13
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLDBAChecklist1.EnsureyourproducLondatabasesareavailable ✔2.MonitorMySQLperformancethroughouttheday ✔3.VerifythatMySQLreplicaLonisworkingproperly ✔4.Confirmthatbackupshavecompletedsuccessfully ✔5.MonitordiskspacetoensureMySQLwon’trunoutofspace ✔6.RegularlymonitorandidenLfyblockingissues ✔7.Verifytherehavebeennochangestodatabaseschema ✔8.CheckOSmetricsforunusualevents ✔9.CheckforsecurityvulnerabiliLes ✔10.Monitorandanalyzememoryusage ✔
14
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLDBAChallenges• “Thedatabaseisslow.Whatneedstuning?”• “Whataremymostexpensivequeries?”• “AreindexesopLmized?”• “IsreplicaLonlagaproblem?”• “Didmylastbackupsucceed?”• “Whenwillmydiskfillup?”• “WhenwillIneedmorehardwaretoscale-out?”• “Hasmydatabaseschemachanged?”• “AretheresecurityvulnerabiliLesthatIneedtobeconcernedabout?”
15
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLEnterpriseMonitor
16
• StartmonitoringMySQLin10minutes• Real-LmeMySQLperformanceandavailabilitymonitoring
• Visuallyfind&fixproblemqueries• Diskmonitoringforcapacityplanning• Cloudfriendlyarchitecture
– Noagentsrequired– PolicydrivenconfiguraLon– EasyintegraLonwithDevOpstools
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
CloudFriendlyArchitecture• MySQL
– PerformanceSchemaprovidesQueryAnalyzerdata– ProvidesallMySQLrelatedmetrics
• ServiceManager– CollectsallMySQLrelatedmetrics– CollectsallOS/Hostrelatedmetrics
• Repository– Storesallhistoricaldata
• Agent(opLonal)– OnlyrequiredforOS/Hostmetrics
17
MySQLEnterpriseDashboard
ServiceManager
Repository
HTTPS
DataCen
ter
PublicCloud
PrivateClou
d
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
InstallaLon&ConfiguraLon• InstalltheServiceManager
– shell>./mysqlmonitor-3.X.X.XXXX-…-installer.bin
• UpandRunningin10minutes– Auto-discoveryofMySQLservers– Advisorsarepre-configured– Advisorsarepre-scheduled
• CustomizaLon– CentralizedconfiguraLondashboard– Advisors– Eventhandling
18
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLEnterpriseDashboard
19
"TheMySQLEnterpriseMonitorisanabsolutemustforanyDBAwhotakeshisworkseriously.”AdrianBaumannSystemSpecialistFederalOfficeofInformaLonTechnology&TelecommunicaLons
• SLAmonitoring• Real-Lmeperformancemonitoring• Alerts&noLficaLons• MySQLbestpracLceadvisors
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
Hardware
Schema Changes Data Growth
Indexes
SQL
90%ofPerformanceProblems
SourceofDatabasePerformanceProblems
20
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLPerformanceSchema• IdenLfyperformanceboClenecks• IdenLfyproblemaLcqueries• GetrealLmeinsightintolocks• SeeexactlywhatishappeningwithinMySQL
• GetrealLmeinsightintoMySQLinternals
• GetrealLmeinsightintoqueryexecuLons
21
mysql>select*fromhost_summary_by_stages;+------+--------------------------------+-------+-----------+-----------+|host|event_name|total|wait_sum|wait_avg|+------+--------------------------------+-------+-----------+-----------+|hal|stage/sql/Openingtables|889|1.97ms|2.22us||hal|stage/sql/Creatingsortindex|4|1.79ms|446.30us||hal|stage/sql/init|10|312.27us|31.23us||hal|stage/sql/checkingpermissions|10|300.62us|30.06us||hal|stage/sql/freeingitems|5|85.89us|17.18us||hal|stage/sql/statistics|5|79.15us|15.83us||hal|stage/sql/preparing|5|69.12us|13.82us||hal|stage/sql/optimizing|5|53.11us|10.62us||hal|stage/sql/Sendingdata|5|44.66us|8.93us||hal|stage/sql/closingtables|5|37.54us|7.51us||hal|stage/sql/Systemlock|5|34.28us|6.86us||hal|stage/sql/queryend|5|24.37us|4.87us||hal|stage/sql/end|5|8.60us|1.72us||hal|stage/sql/Sortingresult|5|8.33us|1.67us||hal|stage/sql/executing|5|5.37us|1.07us||hal|stage/sql/cleaningup|5|4.60us|919.00ns|+------+--------------------------------+-------+-----------+-----------+
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
Features&Benefits
22
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
PerformanceMonitoring• MonitorMySQLperformance• MonitorOSperformance• Monitorqueryperformance• Adviceonindexusage• Alertsonperformanceproblems
23
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
EnterpriseQueryAnalyzer• Real-Lmequeryperformance• VisualcorrelaLongraphs• Find&fixexpensivequeries• DetailedquerystaLsLcs• QueryResponseTimeindex(QRTi)
24
“WiththeMySQLQueryAnalyzer,wewereabletoiden9fyandanalyzeproblema9cSQLcode,andtripleourdatabaseperformance.Moreimportantly,wewereabletoaccomplishthisinthreedays,ratherthantakingweeks.”KeithSouhradaSoswareDevelopmentEngineerBigFishGames
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
QueryResponseTimeIndex(QRTi)• “QualityofService”(QoS)measurementforeachquery• QoSmeasurementforaserver,group,oreveryinstance• Singlemetricforqueryperformance
25
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
1 2 3 4
• VisuallyIdenLfySlowQueries• CorrelaLonGraphs• QueryResponseTimeindex(QRTi)• ExecuLonStaLsLcs
• TuneQueries• AddIndexes• TuneSchemas• ImproveCaching
• MySQLExplainPlan• SampleQuery• QueryGraphs BeCerPerformance
SolvingQueryPerformanceProblems
26
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
AdvantagesoftheQueryAnalyzeroverSlowQueryLog
• SeequeryexecuLonstaLsLcs• TracethequeryoriginaLonbacktotheapplicaLonsourcecode• ViewtheoverallqueryperformanceoverLme• Seewhenthequerywasfirstintroduced• Seetheexplainplan• FocusonqueriesspecifictoaparLcularhostandLmeperiod• ViewqueryexecuLonscorrelatedwithotherperformancegraphs
27
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
InnoDBMonitoring• Monitorkeyperformancemetrics• Stayontopoflockingissues• GetconfiguraLonadvice• Examinebufferpoolusage
28
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MemoryUsageMonitoring• MonitorOSmemoryusage• MonitorMySQLmemoryusage• AdviceonconfiguraLon• Alertsonmemoryusage
29
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
ReplicaLonMonitoring• ReplicaLonDashboard• Auto-discoversreplicaLontopology• Master/Slaveperformancemonitoring• ReplicaLonadvisor• BestpracLcereplicaLonadvice
30
"IusetheMySQLEnterpriseMonitoreverydaytomonitorandkeeptabsonourMySQLdatabases.Quickonestopshoppingforkeepingtabsonthem.”WesHomer,SrSystemandNetworkAdministrator
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
ReplicaLonMonitoring:TopologyView• ConfiguraLonofReplicaLonGroups• ReplicaLonChannelView• MulLpleReplicaLonTopologies
– Master/Slave– MulL-Source– Circular– Ring
31
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
ReplicaLonMonitoring:GroupStatus&StaLsLcs• BinaryLogging• Semi-syncReplicaLon• GTIDs• RelayLogging• MulL-threadedReplicaLon• MulL-sourceReplicaLon
32
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
BestPracLceAdvisors• EnforceMySQLbestpracLces• 14Advisorcategories• 250+Advisors• Threshold-basedalerts
– ExponenLalmovingaverages– RatechangedetecLon
• ExpertproblemresoluLonadvice
33
"IdefinitelyrecommendtheMySQLEnterpriseMonitortoDBAswhodon'thaveatonofMySQLexperience.ItmakesmonitoringMySQLsecurity,performanceandavailabilityveryeasytounderstandandtoacton.”SandiBarrSr.SoswareEngineerSchneiderElectric
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
DiskMonitoring• CapacityPlanning• Forecastcapacityrequirements• ProjecLons• Trendanalysis• Timeseriesdata
34
"Withthemonitoringdashboardandadvisoryrules,wecanaccuratelypredictourcapacityrequirementsandop9mizeMySQLperformance.”KeithSouhradaSoswareDevelopmentEngineerBigFishGames
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
EnterpriseBackupMonitoring• Monitorbackupresults• Monitorbackupperformance• Ensurebackupsareuptodate
35
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLConfiguraLonManagement• Centralizedmanagement• Organizedbytopic• OpLonsgroupedbyfeature• Seehostdetails• Seenetworkdetails
36
Advisorswillprovideconfigura?ontuning
advice!
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
SecurityAdministraLon• Accountmanagement• Knowwhenprivilegeschange• GetadviceonbestpracLces• Monitoraccessproblems
37
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
Trends&PredicLveProblemDetecLon• Visualtrendanalysis• IdenLfyoutliers• Headoffproblems• Handleimminentcapacityissues
38
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
Customizable&Extensible• Createcustom
– Groups– Advisors– Graphs– Filters– EventHandlers– Andmore…
39
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
CausesofPerformanceIssues MySQLEnterpriseMonitorHelpsQueriesdoingtablescans SeethesequeriesimmediatelyExcessivetemporarytablesondisk SeethequeriesgeneraLngtheseCPUspikes FindoutwhatcauseditDiskI/OsaturaLon FindoutwhatcauseditInternallocking GetalertswhenlockingissuesoccurHardwareproblems GetalertsfordiskandnetworkproblemsDatabaseandschemachanges GetalertswhenchangesaremadeNewqueriesintroduced SeewhatqueriesareaddedandwhenPoorMySQLconfiguraLon GetadviceonconfiguraLontuning
SolvingCommonPerformanceIssues
40
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
✔ IdenLfythemostexpensivequeries✔ Fulltablescans(noindexes)✔ Excessivetemporarytables✔ Largeand/orfrequentfilesorts✔ CPUusageoverload✔ DiskI/OsaturaLon✔ Hardwareproblems✔ Databaseandschemachanges✔ Newqueriesintroduced✔ PoorMySQLconfiguraLon✔ Internallockingissues
Top10PerformanceIssuesSolved
41
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
TheBoComLine
Performance• Performanceatscale• Monitoringandtuning
PeaceofMind• Insurance• Immediatehelpif/whenneeded
TCO• ReducedriskofdownLme• ImprovedProducLvity
Risks
• Security®ulatorycompliance
• ContactwithMySQLteam
DevOpsAgility• Automatedscaling&management
• Flexible,real-Lmebackups
CustomerSa?sfac?on• ApplicaLonperformance• ApplicaLonupLme
42
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
AddiLonalInfo&CaseStudies
43
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
MySQLEnterpriseMonitorDemoVideos
44
hCp://www.mysql.com/products/enterprise/demo.html
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
CompanyOverviewKnownintheworldwidemobileecosystemfordevelopingandmanagingpaidappsandcontentsthathelpconsumersgetgreaterenjoymentfrommobiledevices.Applica?on Buongiorno’splawormpoweredbyMySQLEnterpriseEdiLon.Stores8TBofdataandhandles50Kqueries/sec,15KtransacLons/sec.WhyMySQLEnterpriseEdi?on?IhighlyrecommendMySQLEnterpriseEdi9on;thelatestversionoftheMySQLEnterpriseMonitorisextremelyusefulandsavesusalotof9meandefforts."--CarmineGiordano,DBAManager,Buongiorno
Buongiorno
45
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
CompanyOverviewInternaLonalinformaLontechnologyservicescompanywithannualrevenueofEUR8.8billionand77,100employeesin52countries.Applica?on AtosManagesTransacLonClearingfortheEuronextMarketsinConLnentalEurope(CashandderivaLves)withMySQLEnterpriseEdiLon.WhyMySQLEnterpriseEdi?on?"MySQLallowsustosleepsoundlyatnight,whichwasfarfrombeingthecasewiththeoldsystem.WedeliverbeQerresultsatalowercost,andthequalityofOracle’sMySQLsupportisexemplary.“--VincentCornet,DBASupportManager,Atos
Atos
46
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
CompanyOverviewSwedishfashionchainwithover180stores,andsellingonlinein28countries.Applica?on E-commerceapplicaLonpoweredbyMySQLEnterpriseEdiLon(iniLallybuiltonCommunityEdiLon).WhyMySQLEnterpriseEdi?on?"MySQLEnterpriseEdi9onenablesustoexpandandgrowonlinesalesinbothexis9ngandnewcountrieswhilemaintainingalowTCO.Itisahighperformance,scalableandeasytomonitordatabase;we’reextremelypleasedwithit.“--NicklasGriphem,ManagerServer&Infrastructure,GinaTricot
GinaTricot
47
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
GetStartedToday!
MySQLEnterpriseEdi?onTrial ContactaMySQLSalesRep
48
hCp://www.mysql.com/trials/ hCp://www.mysql.com/about/contact/
Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|
ThankYou!
49