0

I have a standard master-slave replication for MariaDB to sync one database (master) to multiple slaves. One of the slaves lives behind a proxy, so I need to proxy the replication request to the proxy and from the proxy to the master.

Can I use the proxy_protocol_networks parameter to proxy the requests? Can I proxy replications requests?

Example:

  • master: 192.168.1.1
  • slave: 172.16.1.20
    mysqld.cnf: proxy_protocol_networks= "172.16.1.1"
  • proxy: 172.16.1.1

slave ---> proxy ----> master

userk23r
  • 11
  • 2

1 Answers1

1

Yes, you can proxy replication requests if the proxy is configured to speak the proxy protocol to the master.

danblack
  • 8,258
  • 2
  • 12
  • 28