Planet MySQL HA Blog

The Planet MySQL HA Blog aggregates content from sources that cover topics related to high availability (HA) for MySQL databases.

Some InnoDB Cluster troubleshooting commands

11/13/2024 | MySQL-Med

Different ways to get the status:

mysqlsh --login-path=icadmin -h$MYROUTER1 -- cluster status mysqlsh --login-path=icadmin -h${HOSTNAME} --redirect-primary -- cluster status mysqlsh icadmin:'P4ssw0rD'@db01:3306 -- cluster status --extended=0 mysqlsh icadmin@$MYROUTER1:3306 -- cluster status --extended=1 watch -n 5 “mysqlsh --login-path=icadmin -h$MYROUTER1 -- cluster status”

Set the Primary Instance (switching):

mysqlsh --login-path=icadmin -h${HOSTNAME} --redirect-primary -- clu

Learn More »

Jemalloc install & config for MySQL

11/12/2024 | MySQL-Med

So, we’ve heard that jemalloc is better than malloc for MySQL usage, and in fact, certain versions / forks of mysql already include this, eg. Percona Server (https://github.com/percona/jemalloc).

But, how can I install and configure my system to use it?

Here’s a quick push in the, hopefully, right direction.

First things first, what is “jemalloc” and how does it affect my system? I think it’s quite well explained here: https://www.percona.com/blog/impact-of-memory-a

Learn More »

MySQL Inside: Using the PS error_log table for a quick peak!

09/03/2024 | MySQL-Med

Just thought I’d share a script I use daily and helps me redirect my attention if needed.

This is but a mere pointer, guideline and starting point in any task. I just thought I’d share and hope someone else’s day becomes slightly easier thanks to some brief investigation and command tweaking.

Now the really handy thing here is that I only hard code the router01 node name, as I’m using that as a potential endpoint (thinking cloud, XaaS, etc…) where it could als

Learn More »

MySQL Router quick’n’simple troubleshooting

08/27/2024 | MySQL-Med

I thought I’d share some quick intro steps into how we can monitor the MySQL Router.

This can be useful if we’re observing intermittent outages, network packet drops or you’re just not sure if everythings fine in your MySQL InnoDB Cluster.

My scenario: The drupal servers are connecting and sometimes the users are getting connection errors. I don’0t see anything at MySQL server level of any instance nor cluster problem. Let’s review the Routers.

On all MySQ

Learn More »

Pages