Recently a colleague of mine ask me to provide a simple example
on how ProxySQL can perform sharding.
ProxySQL is a very powerful platform that allow us to manipulate
and manage our connections and query in a simple but effective
way.
In this article I will show you how.
{autotoc enabled=yes}
Before starting is better to clarify some basic concepts.
ProxySQL organize its internal set of servers in Host Groups
(HG), each HG can be associate to users and to Query Rules (QR).
Each QR can be final (apply = 1) or can let ProxySQL continue to
parse other QR.
A QR can be a rewrite action, or can be a simple match, it can
have a specific target HG, or be generic, finally QR are defined
using regex.
You can see QR as a sequence of filters and transformation that
you can arrange as you like.
These simple basic rules give us enormous flexibility, …
[Read more]