Long running queries/statements/transactions are sometimes
inevitable in a MySQL environment. In some occasions, a long
running query could be a catalyst to a disastrous event. If you
care about your database, optimizing query performance and
detecting long running queries must be performed regularly.
Things do get harder though when multiple instances in a group or
cluster are involved.
When dealing with multiple nodes, the repetitive tasks to check
every single node is something that we have to avoid.
ClusterControl monitors multiple aspects of your database server,
including queries. ClusterControl aggregates all the
query-related information from all nodes in the group or cluster
to provide a centralized view of workload. Right there is a great
way to understand your cluster as a whole with minimal effort.
In this blog post, we show you how to detect MySQL long running
queries using ClusterControl.
Why a Query Takes …
[Read more]