mysql enterprise monitor 3

50

Upload: mark-swarbrick

Post on 09-Feb-2017

80 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: MySQL Enterprise Monitor 3
Page 2: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MySQLEnterpriseMonitorMaCLordMySQLProductManager

2

Page 3: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

SafeHarborStatementThefollowingisintendedtooutlineourgeneralproductdirecLon.ItisintendedforinformaLonpurposesonly,andmaynotbeincorporatedintoanycontract.Itisnotacommitmenttodeliveranymaterial,code,orfuncLonality,andshouldnotberelieduponinmakingpurchasingdecisions.Thedevelopment,release,andLmingofanyfeaturesorfuncLonalitydescribedforOracle’sproductsremainsatthesolediscreLonofOracle.

3

Page 4: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MySQLEnterpriseMonitor:Agenda

WhyMySQLEnterpriseEdiLon?

Overview&Architecture

InstallaLon&ConfiguraLon

Features&Benefits

AddiLonalInfo&CaseStudies

4

1

2

3

4

5

Page 5: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

WhyMySQLEnterpriseEdiLon?

5

Page 6: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

Cloud

Web&Enterprise OEM&ISVs

6

IndustryLeadersRelyonMySQL

Page 7: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

TheyScalewithMySQL

MobileNetworkSuppor?ngOver800MillionSubscribers

1.6BillionAc?veUsers 100TBofUserDataforPayPal

IDsProcessedfor1BillionCi?zens

850MillionCandyCrushGamePlays/Day

2BillionEvents/DayforBooking.com

Page 8: MySQL Enterprise Monitor 3

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

Page 9: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

WhyMySQLEnterpriseEdiLon?InAddi?ontoalltheMySQLFeaturesyouLove

InsureYourDeploymentsGettheBestResultsDelightCustomers

9

ImprovePerformance&Scalability

EnhanceAgility&Produc?vity

ReduceTCO

Mi?gateRisks

GetImmediateHelpif/when

Needed

IncreaseCustomerSa?sfac?on

Page 10: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

ManagementToolsAdvancedFeatures Support

• Scalability• HighAvailability• AuthenLcaLon• Audit• EncrypLon• Firewall

• Monitoring• Backup• Development• AdministraLon• MigraLon

• TechnicalSupport• ConsultaLveSupport• OracleCerLficaLons

MySQLEnterpriseEdiLon

Page 11: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

Overview&Architecture

11

Page 12: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MySQLEnterpriseMonitor

12

Applica?onBigFishGamesisagloballeaderintheonlinegamesindustryanddistributesmoregamesworldwidethananyotheronlinesite.KeyBusinessBenefitMySQLQueryAnalyzerprovidesaconsolidatedviewofqueryacLviLesandexecuLondetails,andhasenabledBigFishGamestoquicklyidenLfypoorlyrunningqueriesandtackletherootcausesdirectlyintheSQLcode.WhyMySQLEnterpriseEdi?on?“WiththeMySQLQueryAnalyzer,wewereabletoiden9fyandanalyzeproblema9cSQLcode,andtripleourdatabaseperformance.Moreimportantly,wewereabletoaccomplishthisinthreedays,ratherthantakingweeks.”--KeithSouhrada,SobwareDevelopmentEngineer,BigFishGames

Page 13: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

DatabaseApplicaLonGrowth• 2.1BillionInternetUsers

• 40%DataGrowth/Year

• $1TrillioneCommerce

• 600NewVideos/Minute

• 58MillionTweets/Day

SituaLon

Requirements

• Performance

• Scale-out

• AutomaLon

13

Page 14: MySQL Enterprise Monitor 3

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

Page 15: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MySQLDBAChallenges•  “Thedatabaseisslow.Whatneedstuning?”•  “Whataremymostexpensivequeries?”•  “AreindexesopLmized?”•  “IsreplicaLonlagaproblem?”•  “Didmylastbackupsucceed?”•  “Whenwillmydiskfillup?”•  “WhenwillIneedmorehardwaretoscale-out?”•  “Hasmydatabaseschemachanged?”•  “AretheresecurityvulnerabiliLesthatIneedtobeconcernedabout?”

15

Page 16: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MySQLEnterpriseMonitor

16

•  StartmonitoringMySQLin10minutes• Real-LmeMySQLperformanceandavailabilitymonitoring

• Visuallyfind&fixproblemqueries• Diskmonitoringforcapacityplanning• Cloudfriendlyarchitecture

– Noagentsrequired– PolicydrivenconfiguraLon– EasyintegraLonwithDevOpstools

Page 17: MySQL Enterprise Monitor 3

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

Page 18: MySQL Enterprise Monitor 3

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

Page 19: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MySQLEnterpriseDashboard

19

"TheMySQLEnterpriseMonitorisanabsolutemustforanyDBAwhotakeshisworkseriously.”AdrianBaumannSystemSpecialistFederalOfficeofInformaLonTechnology&TelecommunicaLons

•  SLAmonitoring•  Real-Lmeperformancemonitoring•  Alerts&noLficaLons•  MySQLbestpracLceadvisors

Page 20: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

Hardware

Schema Changes Data Growth

Indexes

SQL

90%ofPerformanceProblems

SourceofDatabasePerformanceProblems

20

Page 21: MySQL Enterprise Monitor 3

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|+------+--------------------------------+-------+-----------+-----------+

Page 22: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

Features&Benefits

22

Page 23: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

PerformanceMonitoring• MonitorMySQLperformance• MonitorOSperformance• Monitorqueryperformance• Adviceonindexusage• Alertsonperformanceproblems

23

Page 24: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

EnterpriseQueryAnalyzer• Real-Lmequeryperformance• VisualcorrelaLongraphs•  Find&fixexpensivequeries• DetailedquerystaLsLcs• QueryResponseTimeindex(QRTi)

24

“WiththeMySQLQueryAnalyzer,wewereabletoiden9fyandanalyzeproblema9cSQLcode,andtripleourdatabaseperformance.Moreimportantly,wewereabletoaccomplishthisinthreedays,ratherthantakingweeks.”KeithSouhradaSoswareDevelopmentEngineerBigFishGames

Page 25: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

QueryResponseTimeIndex(QRTi)•  “QualityofService”(QoS)measurementforeachquery• QoSmeasurementforaserver,group,oreveryinstance•  Singlemetricforqueryperformance

25

Page 26: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

1 2 3 4

• VisuallyIdenLfySlowQueries• CorrelaLonGraphs• QueryResponseTimeindex(QRTi)• ExecuLonStaLsLcs

•  TuneQueries• AddIndexes• TuneSchemas• ImproveCaching

•  MySQLExplainPlan• SampleQuery• QueryGraphs BeCerPerformance

SolvingQueryPerformanceProblems

26

Page 27: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

AdvantagesoftheQueryAnalyzeroverSlowQueryLog

•  SeequeryexecuLonstaLsLcs•  TracethequeryoriginaLonbacktotheapplicaLonsourcecode• ViewtheoverallqueryperformanceoverLme•  Seewhenthequerywasfirstintroduced•  Seetheexplainplan•  FocusonqueriesspecifictoaparLcularhostandLmeperiod• ViewqueryexecuLonscorrelatedwithotherperformancegraphs

27

Page 28: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

InnoDBMonitoring• Monitorkeyperformancemetrics•  Stayontopoflockingissues• GetconfiguraLonadvice•  Examinebufferpoolusage

28

Page 29: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MemoryUsageMonitoring• MonitorOSmemoryusage• MonitorMySQLmemoryusage• AdviceonconfiguraLon• Alertsonmemoryusage

29

Page 30: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

ReplicaLonMonitoring• ReplicaLonDashboard• Auto-discoversreplicaLontopology• Master/Slaveperformancemonitoring• ReplicaLonadvisor• BestpracLcereplicaLonadvice

30

"IusetheMySQLEnterpriseMonitoreverydaytomonitorandkeeptabsonourMySQLdatabases.Quickonestopshoppingforkeepingtabsonthem.”WesHomer,SrSystemandNetworkAdministrator

Page 31: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

ReplicaLonMonitoring:TopologyView• ConfiguraLonofReplicaLonGroups• ReplicaLonChannelView• MulLpleReplicaLonTopologies

– Master/Slave– MulL-Source– Circular– Ring

31

Page 32: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

ReplicaLonMonitoring:GroupStatus&StaLsLcs• BinaryLogging•  Semi-syncReplicaLon• GTIDs• RelayLogging• MulL-threadedReplicaLon• MulL-sourceReplicaLon

32

Page 33: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

BestPracLceAdvisors•  EnforceMySQLbestpracLces•  14Advisorcategories•  250+Advisors•  Threshold-basedalerts

– ExponenLalmovingaverages– RatechangedetecLon

•  ExpertproblemresoluLonadvice

33

"IdefinitelyrecommendtheMySQLEnterpriseMonitortoDBAswhodon'thaveatonofMySQLexperience.ItmakesmonitoringMySQLsecurity,performanceandavailabilityveryeasytounderstandandtoacton.”SandiBarrSr.SoswareEngineerSchneiderElectric

Page 34: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

DiskMonitoring• CapacityPlanning•  Forecastcapacityrequirements• ProjecLons•  Trendanalysis•  Timeseriesdata

34

"Withthemonitoringdashboardandadvisoryrules,wecanaccuratelypredictourcapacityrequirementsandop9mizeMySQLperformance.”KeithSouhradaSoswareDevelopmentEngineerBigFishGames

Page 35: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

EnterpriseBackupMonitoring• Monitorbackupresults• Monitorbackupperformance•  Ensurebackupsareuptodate

35

Page 36: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MySQLConfiguraLonManagement• Centralizedmanagement• Organizedbytopic• OpLonsgroupedbyfeature•  Seehostdetails•  Seenetworkdetails

36

Advisorswillprovideconfigura?ontuning

advice!

Page 37: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

SecurityAdministraLon• Accountmanagement• Knowwhenprivilegeschange• GetadviceonbestpracLces• Monitoraccessproblems

37

Page 38: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

Trends&PredicLveProblemDetecLon• Visualtrendanalysis•  IdenLfyoutliers• Headoffproblems• Handleimminentcapacityissues

38

Page 39: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

Customizable&Extensible• Createcustom

– Groups– Advisors– Graphs– Filters– EventHandlers– Andmore…

39

Page 40: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

CausesofPerformanceIssues MySQLEnterpriseMonitorHelpsQueriesdoingtablescans SeethesequeriesimmediatelyExcessivetemporarytablesondisk SeethequeriesgeneraLngtheseCPUspikes FindoutwhatcauseditDiskI/OsaturaLon FindoutwhatcauseditInternallocking GetalertswhenlockingissuesoccurHardwareproblems GetalertsfordiskandnetworkproblemsDatabaseandschemachanges GetalertswhenchangesaremadeNewqueriesintroduced SeewhatqueriesareaddedandwhenPoorMySQLconfiguraLon GetadviceonconfiguraLontuning

SolvingCommonPerformanceIssues

40

Page 41: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

✔ IdenLfythemostexpensivequeries✔ Fulltablescans(noindexes)✔ Excessivetemporarytables✔ Largeand/orfrequentfilesorts✔ CPUusageoverload✔ DiskI/OsaturaLon✔ Hardwareproblems✔ Databaseandschemachanges✔ Newqueriesintroduced✔ PoorMySQLconfiguraLon✔ Internallockingissues

Top10PerformanceIssuesSolved

41

Page 42: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

TheBoComLine

Performance•  Performanceatscale•  Monitoringandtuning

PeaceofMind•  Insurance•  Immediatehelpif/whenneeded

TCO•  ReducedriskofdownLme•  ImprovedProducLvity

Risks

•  Security&regulatorycompliance

•  ContactwithMySQLteam

DevOpsAgility•  Automatedscaling&management

•  Flexible,real-Lmebackups

CustomerSa?sfac?on•  ApplicaLonperformance•  ApplicaLonupLme

42

Page 43: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

AddiLonalInfo&CaseStudies

43

Page 44: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

MySQLEnterpriseMonitorDemoVideos

44

hCp://www.mysql.com/products/enterprise/demo.html

Page 45: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

CompanyOverviewKnownintheworldwidemobileecosystemfordevelopingandmanagingpaidappsandcontentsthathelpconsumersgetgreaterenjoymentfrommobiledevices.Applica?on Buongiorno’splawormpoweredbyMySQLEnterpriseEdiLon.Stores8TBofdataandhandles50Kqueries/sec,15KtransacLons/sec.WhyMySQLEnterpriseEdi?on?IhighlyrecommendMySQLEnterpriseEdi9on;thelatestversionoftheMySQLEnterpriseMonitorisextremelyusefulandsavesusalotof9meandefforts."--CarmineGiordano,DBAManager,Buongiorno

Buongiorno

45

Page 46: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

CompanyOverviewInternaLonalinformaLontechnologyservicescompanywithannualrevenueofEUR8.8billionand77,100employeesin52countries.Applica?on AtosManagesTransacLonClearingfortheEuronextMarketsinConLnentalEurope(CashandderivaLves)withMySQLEnterpriseEdiLon.WhyMySQLEnterpriseEdi?on?"MySQLallowsustosleepsoundlyatnight,whichwasfarfrombeingthecasewiththeoldsystem.WedeliverbeQerresultsatalowercost,andthequalityofOracle’sMySQLsupportisexemplary.“--VincentCornet,DBASupportManager,Atos

Atos

46

Page 47: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

CompanyOverviewSwedishfashionchainwithover180stores,andsellingonlinein28countries.Applica?on E-commerceapplicaLonpoweredbyMySQLEnterpriseEdiLon(iniLallybuiltonCommunityEdiLon).WhyMySQLEnterpriseEdi?on?"MySQLEnterpriseEdi9onenablesustoexpandandgrowonlinesalesinbothexis9ngandnewcountrieswhilemaintainingalowTCO.Itisahighperformance,scalableandeasytomonitordatabase;we’reextremelypleasedwithit.“--NicklasGriphem,ManagerServer&Infrastructure,GinaTricot

GinaTricot

47

Page 48: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

GetStartedToday!

MySQLEnterpriseEdi?onTrial ContactaMySQLSalesRep

48

hCp://www.mysql.com/trials/ hCp://www.mysql.com/about/contact/

Page 49: MySQL Enterprise Monitor 3

Copyright©2016Oracleand/oritsaffiliates.Allrightsreserved.|

ThankYou!

49

Page 50: MySQL Enterprise Monitor 3