XWiki master slave configuration

Hi Team,

Am trying to configure high availability purposes xwiki instances with mariadb database.
In this case i just configured mysql databases on master slave replications and it’s working fine with content wise updates from master xwiki to slave.
But while am trying to upload / attached any images or text files from master it’s working fine. But from slave xwiki server attachements are seems broken status and while click over the attachements it’s says file not exist.

Manually verfied from mysql xwiki database attachement tables all the master uploaded files and sizes are same in the slave database aswell.

I don’t know what should i make the configure with xwiki.cfg or xwiki.properties for this attachemnts

Kindly anyone guide me to get this on resolved

Since you are only mentioning the database, one thing you might have missed is that XWiki is also storing a bunch of things on the disk, for example the actual attachment content (what’s in the database is only attachment metadata). You might want to take a look at https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Configuration/#HPermanentDirectory.

You might also want to take a look at https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Clustering/ (and especially https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Clustering/#HLimitations) since most of the constraints and problems that apply to clustering will also apply to what you are trying to do from what I understand.

Hi @tmortagne

Thanks for your update.
I have verified the above links but am not getting clear idea about the master slave replications of xwiki server.
May i get any steps to configure master slave xwiki configurations.

Thanks in advance.