In our previous blog post ProxySQL HA with BGP ECMP Anycast, we established why we would want to use BGP ECMP as a strategy for making our ProxySQL cluster highly available. Now let’s look at how to implement it technically.
For this scenario we assume that we have:
- an OPNsense instance as our BGP Router with the IP address
10.5.8.251 - Two ProxySQL nodes (proxysql-01 with IP
10.5.20.4and proxysql-02 with IP10.5.20.5) -
10.5.200.1as the anycast IP we want both ProxySQL nodes to accept connections on
Setup on the router Enable BGP on OPNsense
The out-of-the-box installation of OPNsense does not come with
BGP support. To add it, install the FRRouting package first
(os-frr), which will enable …