There are lots of new features in MySQL 8.0 that was recently released including our Document Store capability. There are a few core capabilities related to InnoDB Cluster in 8.0 that I’d like to share but some will arrive in some coming blogs. Primarily here I’ll point out some nice details with InnoDB Cluster 8.0… Read More »
If you are a regular reader of this blog, you likely know I like the ZFS filesystem a lot. ZFS has many very interesting features, but I am a bit tired of hearing negative statements on ZFS performance. It feels a bit like people are telling me “Why do you use InnoDB? I have read that MyISAM is faster.” I found the comparison of InnoDB vs. MyISAM quite interesting, and I’ll use it in this post.
To have some data to support my post, I started an AWS i3.large instance with a 1000GB gp2 EBS volume. A gp2 volume of this size is interesting because it is above the burst IOPS level, so it offers a constant 3000 IOPS performance level.
I used sysbench to create a table of 10M rows and then, using export/import tablespace, I copied it 329 times. I ended up with 330 tables for a total size of about 850GB. The dataset generated by sysbench is not very compressible, so I used lz4 compression in ZFS. …
[Read more]In reply to GetMySQL Administration.
Hi GetMySQL. Plugin is working on 5.6.40 see below logs:
2018-05-15 14:23:23 4946 [Note] InnoDB: 5.6.40 started; log
sequence number 1626007
2018-05-15 14:23:23 4946 [Note] McAfee Audit Plugin: starting up.
Version: 1.1.6 , Revision: 784 (64bit). MySQL AUDIT plugin
interface version: 769 (0x301). MySQL Server version:
5.6.40.
2018-05-15 14:23:23 4946 [Note] McAfee Audit Plugin:
setup_offsets audit_offsets: 6992, 7040, 4000, 4520, 72, 2704,
96, 0, 32, 104, 136, 7128, 4392, 2800, 2808, 2812, 536, 0, 0,
6360, 6384, 6368, 13048, 548, 516 validate_checksum: 1
offsets_by_version: 1
2018-05-15 14:23:23 4946 [Note] McAfee Audit Plugin: mysqld:
/usr/sbin/mysqld (d156a1659a2a6b64ca0ea3f5e4c77c5b)
2018-05-15 14:23:23 4946 …
MySQL User Camp is a forum where MySQL Engineers and community users come together to connect, collaborate, and share knowledge. This year’s first MySQL User Camp was held on 27th April 2018, at Oracle India Pvt Ltd, Kalyani Magnum Infotech Park, Bangalore with an excellent turnout of 60 attendees. The event began with a welcome […]
To support the new feature Partial Update of JSON documents, InnoDB changed the way it stored the large objects (LOBs) in MySQL 8.0. This is because InnoDB does not have a separate JSON data type and stores JSON documents as large objects.…
Generally TPC-C benchmark workload is considered as one of the #1 references for Database OLTP Performance. On the same time, for MySQL users it's often not something which is seen as "the most compelling" for performance evaluations.. -- well, when you're still fighting to scale with your own very simple queries, any good result on something more complex may only look as "fake" ;-)) So, since a long time Sysbench workloads remained (and will remain) as the main #1 "entry ticket" for MySQL evaluation -- the most simple to install, to use, and to point on some sensible issues (if any). Specially that since new Sysbench version 1.0 a lot of improvements were made in Sysbench code itself, it really scales now, has the lowest ever overhead, and also allowing you to add your own test scenario via extended LUA scripts (and again, with lowest ever overhead) -- so, anyone can easily add …
[Read more]This post is about a very simple approach / step-by-step InnoDB log (aka transaction logs)resize, We don’t do this activity regularly but when we have to resize InnoDB log files, there will be a MySQL downtime. This post will be a like a checklist for anyone who want to resize InnoDB log files without any mistakes, We made this task in multiple steps so that you can follow much better:
Step 1 – Check existing logs and their size:
[root@localhost ~]# lsof -c mysqld | grep ib_logfile mysqld 1018 mysql 5uW REG 253,0 50331648 180228 /var/lib/mysql/ib_logfile0 mysqld 1018 mysql 11uW REG 253,0 50331648 180229 /var/lib/mysql/ib_logfile1
Step 2 – Shutdown MySQL
[root@localhost ~]# systemctl stop mysqld [root@localhost ~]# systemctl status mysqld ● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; …[Read more]
Do you want to install MySQL 8.0 on Ubuntu 16.04 LTS? In this quick tutorial, I show you exactly how to do it in five minutes or less.
This tutorial assumes you don’t have MySQL or MariaDB installed. If you do, it’s necessary to uninstall them or follow a slightly more complicated upgrade process (not covered here).
Step 1: Install MySQL APT Repository
Ubuntu 16.04 LTS, also known as Xenial, comes with a choice of MySQL 5.7 and MariaDB 10.0.
If you want to use MySQL 8.0, you need to install the MySQL/Oracle Apt repository first:
wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb dpkg -i mysql-apt-config_0.8.10-1_all.deb
The MySQL APT repository installation package allows you to pick what MySQL version you want to install, as well as if you want access to Preview Versions. …
[Read more]In this post we will discus about the different ways we can purge binary logs safely in MySQL, We recommend you to confirm before purging the binary logs from the master, all logs were applied to the slaves to avoid halting them. The following error is usual when binary log is purged before being applied on slave:
Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: ‘Could not open log file’
How can we safely purge MySQL binary log files ?
- On each slave server, use SHOW SLAVE STATUS to check which log file it is reading.
- Get the binary log files details on the master with SHOW BINARY LOGS.
- Check for the earliest log file among all the slaves, This is the target file. If all the slaves are up to date, this is the last log file on the list.
- Make a backup of all log files you are about to delete (We insist …
Historically, Random I/O Reads were always a major PITA
for any OLTP workload.. If Random I/O Writes you could yet
"delay" via controller's caches (or any kind of other
battery-protected caches -- specially if Writes are coming in
bursts), there is no way to "predict" I/O Reads if they are fully
Random (so you cannot "cache" or "prefetch" them ahead and have
to deliver the data directly from storage, read by read.. --
which is hitting a huge "rotation penalty" on HDD).
Indeed, things changed dramatically since arriving of Flash
Storage. You don't need to spend any particular attention if your
I/O Reads are Random or Sequential. However, you still need to
keep in mind to not hit the overall throughout limit of your
Flash Device. As the result, reading by smaller I/O blocks
allowing you to do more I/O operations/sec than with bigger
blocks. And what about InnoDB ? -- InnoDB is using by default
16KB page size (so by default all Random I/O …