FastX Running Multiple Cluster Managers on the same System
–
To enable multiple cluster managers on one system for distinct clusters:
Stop the fastx cluster manager service
systemctl stop fastx-cluster
Copy the cluster manager service
cp /usr/lib/systemd/system/fastx-cluster.service /usr/lib/systemd/system/fastx-cluster-1.service
- Edit the lines
Environment=FX_BJF_FILE=/etc/fastx/broker-1.json
Environment=FX_DB_FILE=/etc/fastx/db-1.json
EnvironmentFile=-/etc/sysconfig/fastx3-1
cp /etc/fastx/broker.json /etc/fastx/broker-1.json
- Edit the line
"namespace": "fastx-cluster-1"
cp /etc/fastx/db.json /etc/fastx/db-1.json
- Edit the line
"url": "mongodb://server/example/com/fastx-cluster-1"
Load the new service
systemctl reload fastx-cluster-1.service
systemctl start fastx-cluster-1.service
Repeat this for cluster-2 cluster-3 …