Create the mongo.conf.json configuration file - Fluid Topics - 3.8

Install Fluid Topics on Multiple Servers

Operating system
RHEL
Category
Technical Notes
Audience
public
Version
3.8

The servers hosting MongoDB must be declared to enable writing and reading on the MongoDB databases.

For more information on data storage in a Fluid Topics environment, see Data Storage.

It is recommended to have several MongoDB servers to store Fluid Topics data. This way, if one is off, the other one(s) can be used.

  1. If necessary, run the following command to create the "-" directory:

    As antidot user

    mkdir /usr/local/afs7/Fluid-Topics/conf/-

  2. Create the following file:

    As antidot user

    /usr/local/afs7/Fluid-Topics/conf/-/mongo.conf.json

  3. Add the following lines:

    {
    "hosts": [
    {"hostname": "$MONGO_DB_HOST"}
    ]
    }

    Where $MONGO_DB_HOST is the hostname of the server hosting the MongoDB Environment. Default hostname is "localhost".

One "hostname" parameter is required for each unique server.

In our example, add the following lines:

{
"hosts": [
{"hostname": "mong01"},
{"hostname": "mong02"},
{"hostname": "mong03"}
]
}

For these modifications to be taken into account, it is mandatory to restart the Fluid Topics server by running the following command:

As root user

systemctl restart fluidtopics