Если вы используете MySQL, то для вас, скорее всего, важна производительность. Данный доклад посвящен теме производительности, и поэтому его стоит послушать.
В рамках доклада будет рассмотрен практический метод оптимизации производительности MySQL, который большей частью применим для других баз данных тоже.
Из доклада вы узнаете:
+ о том, как измерять производительность, учитывая требования пользователей и бизнеса;
+ о том, как ставить цели по производительности;
+ о том, как наиболее эффективно использовать ресурсы разработчиков и администраторов баз данных для получения максимального результата.
2. www.percona.com2
Few Words About Percona
Your Partner in
MySQL and
MongoDB Success
100% Open Source
Software
“No Lock in
Required” Solutions
and Services
We work with
MySQL, MariaDB,
MongoDB, Amazon
RDS and Aurora
2
3. www.percona.com3
In This Presentation We’ll
Look at how to approach
Performance Optimization
Discuss Practical Performance
Optimization Tips
Look at the Tools which can help us
19. www.percona.com19
Things to Consider
• But avoid focusing only
on outliers
Do not look at
the average
case only
• Consider daily, weekly,
monthly cycles
Look at trends
over time
• Data size change?
Cardinality?
Think about
future
performance
20. www.percona.com20
Query Tips
Do less queries – latency and overhead
Read or modify less data
Less data processing on the fly
How much data is traversed vs sent
How much data is sent vs used by app
22. www.percona.com22
Schema Tips
• http://bit.ly/1rAtamELearn Indexing
• Starting with Text book schema is OK
ending is likely not
Design
Schema for
data access
• Partitioning & Sharding
• Normalization and Denormalization
• Covering Indexes
Technics
24. www.percona.com24
Optimization Process
Low Hanging
Fruit
• MySQL
Configuration
• OS Settings
• Indexes
• Caching
Medium Level
• Infrastructure
• OS
• MySQL
Version
Hard Changes
• Major
schema
changes
• Application
architecture
change
34. www.percona.com34
MySQL Version
New versions typically improve performance
MySQL 5.7 is available now!
Scalability, Improved Optimizer, etc.
Expect some regressions
Try Percona Server 5.6
38. www.percona.com38
Process
• Do not bring bad queries and
schema in production
Developers
Part
• Catch bad queries
• Validate changes in hardware,
configuration, versions
Operations
Process
39. www.percona.com39
Queries will be impacted
Hardware Changes
Configuration
MySQL Version Changes
Impact of Data Growth
Changes to the Query Mix
Optimizer Plan Changes
41. www.percona.com41
Performance Schema +
Graphite
• Performance Schema allows to plot query
information as time series
• Solution for Graphite
• Working on easy to use one for Grafana
• http://bit.ly/1KQSNWC
45. www.percona.com45
To Sum it Up
It is Application Performance what Matters!
Use Right Tools for Right Job
See what Queries MySQL is Running
Reduce Number of Queries
Reduce Data They Return
See how they can do less work
Do that work more efficiently
46. www.percona.com46
Want More ?
I’m talking about MySQL Replication Options
Free (as in Beer) Moscow MySQL Users Group
meetup November 6th,
Hosted by Mail.ru
http://www.meetup.com/moscowmysql/
4
6
47. www.percona.com47
Percona Live 2016 call for
paper is Open
Call for Papers Open until November 29, 2016
MySQL, MongoDB, NoSQL, Data in The Cloud
Anything to make Data Happy!
http://bit.ly/PL16Call
4
7