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
    1. Environment=FX_BJF_FILE=/etc/fastx/broker-1.json
    2. Environment=FX_DB_FILE=/etc/fastx/db-1.json
    3. 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

  1. systemctl reload fastx-cluster-1.service
  2. systemctl start fastx-cluster-1.service

Repeat this for cluster-2 cluster-3 …