FastX Multiple Namespaces on One Cluster Manager


Users cannot set multiple namespaces in one broker.json. Each broker.json can contain one namespace.

Users can create multiple broker.json files and run multiple instances of the cluster manager setting the broker file to the corresponding json file


To enable multiple cluster managers on 1 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: 2: 3:

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

  1. Edit the line 
    "namespace": "fastx-cluster-1"
     

cp /etc/fastx/db.json /etc/fastx/db-1.json

  1. Edit the line
    "url": "mongodb://server/example/com/fastx-cluster-1"

Load the new service

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

Repeat this for cluster-2 cluster-3 …