Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've read from multiple sources now that you can't have query caches with Galera, but my current application could really benefit from a query cache. I'm load-balancing this cluster with HAProxy and am curious if HAProxy has any kind of caching ability or if there is an easy solution to this problem I'm just missing?

share|improve this question

2 Answers 2

You could run into inconsistent data if you introduce separate caches elsewhere than inside MySQL. And I think that is the reason in the first place why Galera has no query cache.

The application should have its own cache with memcached, where required data would be stored.

share|improve this answer

Since MariaDB Galera cluster versions 5.5.40 and 10.0.14 you can use the query cache. Earlier versions do NOT support the query cache.

See https://mariadb.com/kb/en/mariadb/documentation/optimization-and-tuning/buffers-caches-and-threads/query-cache/#limitations

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.