'Redis clustering on same servers as app and db server

I would like to setup a cluster for a small app/db (with galera) and was watching for session storage. The only reason of the cluster is because we need it to be always available, ressources should not be a matter.

I am wondering if I setup my 3 hosts with the same stack :

  • app
  • db (sync with galera)
  • redis (1master+1slave per host clustered between the 3 hosts)

Will my app's containers be able to access every part of redis's sessions stored, no matter where they are ? Or are they bound to the linked redis-container I set it up with at first ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source