Jahia 7.3
Jahia 8
How to deactivate cluster synchronization of configuration files?
Question
How can I deactivate the cluster synchronisation of configuration files? So that I can use different configurations on my cluster nodes.
Answer
Procedure to deactivate the synchronisation of configuration files in cluster:
- Start all the cluster nodes if the cluster is stopped, procedure is done on a started Cluster.
- On one node only:
- edit /digital-factory-data/karaf/etc/org.apache.karaf.cellar.groups.cfg
- set
default.config.sync
todisabled
(default.config.sync = cluster) - wait for the modification to be effective (a log is displayed when it's done)
- On all cluster nodes: (repeat step 3 on all cluster nodes)
- go to /digital-factory-data/karaf/etc
- use the cmd
touch
on all the config files that use factories (config file that contains a "-" separator in the last part, like: org.jahia.modules.graphql.provider-default.cfg)
Now all configuration will be local to the Jahia nodes, and configuration synchronisation is completely disabled.