20
Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona Scale 18x March 6 th ,2020 Pasadena,CA

Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev,

CEO, Percona

Scale 18xMarch 6th,2020Pasadena,CA

Page 2: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

The Presentation

2

Intro to Performance Optimization and Troubleshooting

Intro to Percona Monitoring and Management (PMM)

Demo

Page 3: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Performance Optimization and Troubleshooting

3

Page 4: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

The Difference

4

•Focused on Performance Only•Development or Production•Best done Proactively

Performance Optimization

•Performance, Availability, Debugging•Development or Production•Reactive by Nature

Troubleshooting

Page 5: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Outcomes • Developer• I want this damn database to

work

5

Page 6: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Outcomes• Manager• I want this database not to

cost so much money to run

6

Page 7: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Outcomes

• DBA• I do not want to spend too

much time and effort keeping Developer and Manager Happy

7

Page 8: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Queries

8

Executed with Great Performance

Correct Result

Not Impacting other Applications

Not Using Too Much Resources

Page 9: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Application Responsibility

Application is responsible for volume and kinds of queries it generates

9

Page 10: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Resource FocusOversubscribed resource can make even simple queries run slow

10

Page 11: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Primary Raw Resources

11

Page 12: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Resource Utilization

12

Other Queries

Database Background Activities

Other Processes on the same Node

Noisy Neighbors

Page 13: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Approach

It may make sense to approach Performance Optimization and Troubleshooting from Resource side or Queries Side. Percona Monitoring and Management (PMM) enables both

13

Page 14: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

About Percona Monitoring and Management (PMM)

14

Page 15: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

PMM at Grance

15

Purpose build Monitoring/Observability platform focused on Databases

100% Free and Open Source

Roll your own, On Prem and In the Cloud

Supports MySQL, MongoDB, PostgreSQL

Supports Cloud Based database deployments such as Amazon RDS

Page 16: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

PMM Provides

Bring together your Devs and Ops to build better apps faster and

run Open Source Databases better

16

Page 17: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

PMM version 2

17

Major Re-write

Support Large Environments

Much Deeper insights

Look at Group of Servers rather than Individual Servers

Page 18: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona

Links • https://per.co.na/PMM• https://pmmdemo.percona.com

18

Page 19: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

© 2020 Percona19

Page 20: Optimize and Troubleshoot MySQL using PMM 2 › sites › default › files › presentations › Scal… · Optimize and Troubleshoot MySQL using PMM 2 Peter Zaitsev, CEO, Percona

Thank you, Let’s Connect!https://www.linkedin.com/in/peterzaitsev/

https://twitter.com/PeterZaitsev