Group Replication introduces a new way to do replication in MySQL. With great features such as multi-master replication it brings a range of exciting deployment scenarios where some difficult problems become much easier to solve. Group Replication also brings a new set of options that may need to be configured to extract the highest performance from the underlying computing resources.…
I worked on an issue last recently where a query was too slow when executed in MySQL Cluster. The issue was that Cluster has some restrictions when it comes to push down conditions.
As an example of this, consider the following query using the employees sample database. The query takes a look at the average salary based on how many years the employee has been with the company. As the latest hire date in the database is in January 2000, the query uses 1 February 2000 as the reference date.
Initially the query performs like (performance is with two data
nodes and all nodes in the same virtual machine on a laptop, so
the timings are not necessarily representative of a production
system, though the improvements should be repeatable):
mysql> SELECT FLOOR(DATEDIFF('2000-02-01', hire_date)/365) AS LengthOfService,
COUNT(DISTINCT employees.emp_no) AS NoEmployees, AVG(salary) AS AvgSalary
FROM salaries …[Read more]
Are you looking to improve your MySQL performance? Application success is often limited by poor MySQL performance. Please join Percona CEO and Founder Peter Zaitsev for this exclusive webinar on Wednesday, July 20th, 2016 at 11:00 AM PDT (UTC – 7) as he presents “Practical MySQL Performance Optimization“.
Peter Zaitsev discusses how to get excellent MySQL performance while being practical. In other words, spending time on what gives you the best return. The webinar updates Peter’s ever-popular Practical MySQL Performance Optimization presentation. It covers the important points for improving MySQL performance. It also includes a discussion of the new tools and features in the latest MySQL 5.7 …
[Read more]Proper MySQL Query Optimization starts with a proper Slow Query Logging session. And MySQL Query Optimization is where I spend 70-80% of my time when doing MySQL performance optimization.
In part 2 here, we will go over the pt-query-digest report, that we have prepared in part 1.
Here’s links to the other two parts:
- Advanced MySQL Slow Query Logging Part 1: the essentials
- Advanced MySQL Slow Query Logging Part 3: fine-tuning the logging process
The post Advanced MySQL Slow Query Logging Part 2: …
[Read more]Proper MySQL Query Optimization starts with a proper Slow Query Logging session. And MySQL Query Optimization is where I spend 70-80% of my time when doing MySQL performance optimization. In this short series I will show you how to do Slow Query Logging the right way.
Here’s links to the other two parts:
- Advanced MySQL Slow Query Logging Part 2: pt-query-digest report
- Advanced MySQL Slow Query Logging Part 3: fine-tuning the logging process
The post Advanced MySQL Slow Query Logging appeared first on Speedemy.
Researching a performance issue, we came to a startling discovery:
MySQL 5.7 + binlogs is by default 37-45% slower than MySQL 5.6 + binlogs when otherwise using the default MySQL settings
Test server MySQL versions used:
i7, 8 threads, SSD, Centos 7.2.1511
mysql-5.6.30-linux-glibc2.5-x86_64
mysql-5.7.12-linux-glibc2.5-x86_64
mysqld –options:
--no-defaults --log-bin=mysql-bin --server-id=2
Run details:
Sysbench version 0.5, 4 threads, socket file connection
Sysbench Prepare:
sysbench --test=/usr/share/doc/sysbench/tests/db/parallel_prepare.lua --oltp-auto-inc=off --mysql-engine-trx=yes --mysql-table-engine=innodb --oltp_table_size=1000000 --oltp_tables_count=1 --mysql-db=test --mysql-user=root --db-driver=mysql --mysql-socket=/path_to_socket_file/your_socket_file.sock …[Read more]
Sandisk (FusionIO) and Nexenta are working together to build this SDS solution.
Infiniflash is a very large SDS production, which manages for very large DW system who requires large storage space and also high IOPS.
We test infiniflash system ,read this Infiniflash_benchmark
In this blog, I will provide answers to the Q & A for the Troubleshooting Slow Queries webinar.
First, I want to thank you for attending the April 28 webinar. The recording and slides for the webinar are available here. Below is the list of your questions that I wasn’t able to answer during the webinar, with responses:
Q: I’ve heard that is a bad idea to use
select *
; what do you recommend?
A: When I used
SELECT *
in my slides, I wanted to underline the idea that sometimes you need to select all columns from the …
[Read more]We’re moving along on the first day at Percona Live Data Performance Conference 2016, and I was able to attend a lecture from Intel’s Ken LeTourneau on Performance of Percona Server for MySQL on Intel Server Systems using HDD, SATA SSD, and NVMe SSD as Different Storage Mediums. In this talk, Ken reviewed some benchmark testing he did using MySQL on various types of storage mediums. This talk looked at the performance of Percona Server for MySQL for Linux running on the same Intel system, but with three different storage configurations. We looked at and compared the performance of:
- a RAID of HDD
- a RAID of SATA SSD
- a RAID of NVMe SSD
In the talk, Ken covered the hardware and system …
[Read more]
When your database undergoes a restart, whether it's a clean
reboot or a crash, it will typically create two negative effects
your application will have to face:
blackout (downtime) and brownout (period
of degraded performance after startup).
In my previous post, I described how Aurora makes
downtime less stressful for you, now it's time to investigate yet
another feature that should come in handy in mission-critical
environments: the survivable page cache.
Introduction As usual, let's throw in a tiny bit of theory before
looking at the demonstrations.
The InnoDB Buffer Pool is an in-memory area for
caching data and index pages. That said, buffer pool can also be
called a "page cache". Both terms mean …