Documente Academic
Documente Profesional
Documente Cultură
Contents
Introduction ................................................................................................................ 3
The Busy MySQL DBA .............................................................................................. 3
The Impact on Your Business .................................................................................. 3
The Common but Deadly MySQL Problems ................................................................ 4
Out of Date MySQL Version .................................................................................... 4
Inadequate MySQL Configuration Settings ............................................................. 5
Unmindful Deployment Practices ........................................................................... 6
How Percona Can Help You......................................................................................... 7
About Percona ............................................................................................................ 8
October 7, 2014
Percona. All rights reserved.
Introduction
This is the first of a series of three white papers intended to give busy DBAs and their
management an understanding of some of the most common MySQL implementation,
performance, and recovery problems that can be minimized or prevented by proactive
and diligent MySQL administration best practices. The issues covered in this white paper
are:
This information is based on collected advice from the Percona Support, Consulting, and
Managed Services teams. This group includes top experts in MySQL operations who
have helped thousands of clients over the past 8 years.
You may be filling the role of your organizations MySQL DBA because there is
no one else available. You may have limited DBA experience and might be an IT
professional, a SysAdmin, the CTO, or on the Engineering and Development
staff.
You may be a DBA by profession but be overloaded due to lack of resources in
your organization. Your time might be divided between database operations
and other tasks such as application development. You may be addressing issues
reactively or when time allows, hopefully before disaster strikes.
You may be a DBA transitioning into a more strategic role in which the handling
of common operational tasks is no longer your main focus or desire. In this
capacity, common but necessary database administrative tasks are performed
ad hoc, as time allows, or perhaps not at all.
October 7, 2014
Percona. All rights reserved.
Unacceptable downtime
Unnecessary costs
Potential malicious attacks
Frustrated users
Lost business
Percona services can help. Percona Consulting and Support services for MySQL offer
customized help and immediate assistance from MySQL experts. Percona Managed
Services for MySQL can take over all of your organizations MySQL operational tasks,
letting you concentrate on other projects.
Security you can be more vulnerable to security exploits with an old version
of MySQL which may increase the surface area for potential attacks
Performance you will usually experience better performance with the latest
version of MySQL
Support your version might be so old that it is no longer supported by your
vendor or it is difficult to find tools or a consultant to help
For example, Percona had an online consumer business client that was running MySQL
5.1. They were experiencing edge case query performance issues where index hints
were unable to provide relief from poor response time. The problem was critically
impacting sales due to frustrated users. Testing the same queries on Percona Server 5.6
proved that the performance enhancements of the Percona Server 5.6 query optimizer
reduced their overall load by around 40%. Upgrading to Percona Server 5.6 provided
capacity for growth on their existing systems, avoided costly hardware purchases, and
delivered better response times and a superior customer experience.
Minor version upgrades may be something you can handle with little risk. However, for
a major upgrade, you may want to consider using outside help that has experience
dealing with a multitude of upgrade scenarios. Percona uses a carefully managed
approach to upgrades which combines unique tools such as Percona Toolkit with our
decades of experience. For our Managed Services clients, the team works hand-in-hand
with our clients to test, plan, execute, and re-test so there are no surprises when
moving from a legacy version of MySQL to the latest release.
October 7, 2014
Percona. All rights reserved.
Here are some examples of how default settings can impact your system:
The reality is that organizations can often use their database servers a lot longer than
they think. Adding more infrastructure should only occur after MySQL is tuned
appropriately. A new Percona client in the ecommerce industry asked us to investigate
performance issues because their current architecture couldn't cope with their query
workload. Upon investigation, we found that the variables configured to sync the
October 7, 2014
Percona. All rights reserved.
replication metadata were all set to 1 and would sync after every event written. This
generated a huge amount of fsyncs on their environment and put significant pressure
on their storage. Changing these variables to values that were more suitable to their
application cut storage usage by over 50% and instantly resolved their problems with
query performance.
Percona approaches MySQL configuration tuning by measuring performance, identifying
bottlenecks, applying tuning changes, and measuring the results. This approach provides
a record of the reasons behind tuning changes so they can be applied with confidence.
Related Percona Resources
There are several resources on the Percona website that you can use to help you better
configure MySQL including:
October 7, 2014
Percona. All rights reserved.
become the master or you might use pt-online-schema-change from Percona Toolkit.
You might even be able to directly run ALTER on small tables or run the larger ALTERs
during off hours. The point is to pay careful attention in each deployment, not only the
code changes but also how the databases are impacted.
Percona works with clients to thoroughly inspect SQL to ensure that there are no hidden
surprises. When we have identified database changes in a clients code deployment that
could impact performance, we have found that gently administering the needed
changes over an elongated period of time reduces risk. In addition, we have deployment
tools that enable us to perform dry runs before actually executing the changes on the
data. Running tests and manually checking changes has saved our clients from potential
disasters in the past.
Related Percona Resources
There are several resources located on the Percona website that you can use to prepare
to deploy new code including:
October 7, 2014
Percona. All rights reserved.
If you dont have the resources to adequately manage your MySQL operations, you can
outsource the full operational control of your MySQL servers to Percona. Percona is a
leader in MySQL managed services, offering both outsourced database administration
services and backup and recovery services. We can evaluate your current MySQL
operations, your goals, and your resources to collaboratively implement a solution that
will:
Organizations that rely on Percona Managed Services benefit from our deep
operational expertise, 24x7x365 coverage from our worldwide team of experts, SLA
commitments, and unlimited incidents without additional hourly fees.
Percona Managed Services can support your existing database infrastructure whether it
is hosted on premise or at a colocation facility or you purchase services from a cloud
provider or database-as-a-service provider.
The Percona Remote DBA service provides full operational management of your MySQL
servers. We apply best practices to configure your servers, set up monitoring and alerts,
configure and manage your backups, respond to alerts 24x7x365, perform routine
operational tasks, and help you plan for future growth. Our Remote DBA service allows
you to concentrate on enhancing your applications while Percona takes care of database
operations.
The Percona Backup Service ensures that your backups are properly configured, run
successfully on schedule, and that any backup issues or production data recovery needs
are handled promptly by expert MySQL technicians. The system uses proprietary tools
and methods which reduce the cost and complexity of MySQL backup and recovery
through advanced data storage management. It also provides full visibility into the
status of all of your backups through a convenient online portal.
To learn about any of our services, please contact us at (208) 473-2904 or +44 208 1330309 in Europe or email us at sales@percona.com.
October 7, 2014
Percona. All rights reserved.
About Percona
Percona has made MySQL faster and more reliable for over
2,000 clients worldwide since 2006. Percona provides
enterprise grade MySQL Support, Consulting, Training, and
Managed Services. Percona's founders authored the
definitive book High Performance MySQL from O'Reilly
Press and the widely read Percona MySQL Performance
Blog. Percona also develops software for MySQL users,
including Percona Server, Percona XtraBackup, Percona
XtraDB Cluster, and Percona Toolkit. The popular Percona
Live conferences draw attendees and acclaimed speakers
from around the world. For more information, visit
www.percona.com.
October 7, 2014
Percona. All rights reserved.