There are several ways to deploy ProxySQL between your
applications and the database servers. A common approach is to
have a floating virtual IP (VIP) managed by
keepalived as the application endpoint. The proxies have to
be strategically provisioned to improve the resiliency of the
solution (different hardware, network segments, etc,).
When we consider cloud environments, spreading instances across
many availability zones (AZ) is considered a best practice, but
that presents a problem regarding VIP handling.
Per definition, VPC subnets have to be created in a specific AZ,
and subnet IP ranges can’t overlap with one another. An IP
address cannot simply be moved to an instance on a different AZ,
as it would end up in a subnet that doesn’t include it.
So in order to use the VIP method, we …
[Read more]