In this article, you will learn how to monitor all your MySQL replication channels.
To reduce the backup size, save storage space, and speed up the
backup and restore process, you can compress a backup with
Percona XtraBackup. The XtraBackup
--compress
option makes
XtraBackup compress all output data, including the transaction
log file and metadata files, with one of the supported compression …
NodeJS is an open-source, cross-platform runtime environment that uses JavaScript for creating fast, data-intensive, and secure server-side applications. These applications require some ways to store data in order to use them again. NodeJS supports all kinds of Databases, relational, and non-relational out of which MySQL can be the best choice. MySQL is a relational database management system that stores data in one or more tables of rows and columns. It can be used in NodeJS to store large amounts of data and retrieve data quickly due to its simple structure using SQL. SQL stands for structured query languages which we…
In our lab environment, we received some emails from our provider, DigitalOcean saying a few nodes would be going down, because of issues with the physical nodes. Since we run a 9-node Galera Cluster in the lab, across 3 regions (San Francisco, London and Singapore), this posed an interesting problem!
Upon connecting to one of the nodes, we see:
mysql> show status like 'wsrep_cluster_size'; +--------------------+-------+ | Variable_name | Value | +--------------------+-------+ | wsrep_cluster_size | 7 | +--------------------+-------+ 1 row in set (0.02 sec)
So we know that 2 of the nodes are down. Presuming you do not have any monitoring setup (might we recommend …
[Read more]Learn how to build MySQL 8 RMS for Oracle Linux 8 from the sources
MySQL Document Store is a NoSQL solution built on top of MySQL. This means we need a test database to use when we want to test code that interacts with MySQL Document Store. With Testcontainers, we can spin up a MySQL database so we can easily test any code that interacts with MySQL Document Store.
Many of us, old MySQL DBAs used
Seconds_Behind_Source
from SHOW REPLICA
STATUS
to find out the status and correct execution of
(asynchronous) replication.
Please pay attention of the new terminology. I’m sure we’ve all used the old terminology.
However, MySQL replication has evolved a lot and the replication team has worked to include a lot of useful information about all the replication flavors available with MySQL.
For example, we’ve added parallel replication, group replication,
… all that information is missing from the the good old
SHOW REPLICA STATUS
result.
There much better ways to monitoring and observing the
replication process(es) using Performance_Schema
.
Currently in Performance_Schema
, there are 15 tables
relating to replication instrumentation:
+------------------------------------------------------+
| …
[Read more]
Learn how to build MySQL 8 RPMs from source.
We have another week of great content to share in this week’s OpenLampTech developer newsletter. Thanks for reading and many thanks to the author’s who write and publish development content each week.
Custom WooCommerce and Shopify Solutions
Discover useful WooCommerce and Shopify custom solutions for your online store today at affordable prices!
The Newsletter for PHP and MySQL Developers
Receive a copy of my ebook, “10 MySQL Tips For Everyone”, absolutely free when you subscribe to the OpenLampTech newsletter.
In OpenLampTech issue #92, I’m reading and enjoying …
[Read more]Learn how to build MySQL 8 RPMs from sources for Oracle Linux 9