-3

Can Varnish be used to front end a pool of mariadb/mysql servers? I see that it does not handle any non-http requests and gives 503 error.

pvpk
  • 1
  • Maybe take a look at the documentation? To just quote the first sentence: "Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy." – mschuett Jul 22 '15 at 10:59

2 Answers2

3

Varnish is a HTTP Cache, so no it cannot act as a frontend for MariaDB/MySQL, unless you were trying to access them via HTTP.

I would recommend HAproxy as a frontend / load balancer solution for MariaDB/MySQL pool.

Justin Hourigan
  • 345
  • 1
  • 9
1

No, Varnish is designed for http traffic and is not suitable for load-balancing mysql/mariadb

rangfu
  • 156
  • 3