The servers hosting MongoDB must be declared to enable writing and reading on the MongoDB databases.
This file is required on the server hosting the Indexing environment.
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.
- Create the following file:
As antidot user
/usr/local/afs7/Fluid-Topics/conf/-/mongo.conf.json
If necessary run the following command to create the "-" directory:
As antidot user
mkdir /usr/local/afs7/Fluid-Topics/conf/-
- 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