LXC containers clustering

Hi team,
I am building an application using juju OLM. The application deployment create three contaienrs, haproxy, application, db. I am planning to run my deployment on two machines for HA. I would like to connect the two lxc db’s containers running in different VM’s. So that I can have one DB. How can I achieve it without LXC clustering.

That’s not really a LXD question but more of a DB / networking question.

I’m guessing that Juju knows how to setup a redundant database, so you should have it do that for you.