Configure the MongoDB Bind IP - ABO - Reference Guides

Back Office Configuration Guide

Product
ABO
AFS_Version
7.11
Category
Reference Guides
language
English
audience
public

This step is only required if the Back Office environment and the Indexing environment are hosted on different servers.

To make sure that MongoDB IP address is correctly set, perform the following steps:

  1. Edit the following file:

    As root user

    /etc/mongod.conf

  2. In the bindIp parameter, modify or add the following line:

    bindIp: 127.0.0.1

    Into

    bindIp: 0.0.0.0

    Note: Ensure the line is not commented (remove '#').

  3. Restart MongoDB by running the following command:

    As root user

    systemctl restart mongod.service

Unless the server is hosted by AWS, it is recommended to use the IP address of the current server instead of 0.0.0.0, as in the following example: bindIp: 192.123.4.56

This configuration opens MongoDB connection to any machine capable of reaching "process" server (and not only "BO"). While it is highly recommended to operate a cluster of AIF/AFS/ABO machines behind a global fire-walling solution, "process" can be protected on its own.

This can be done for example using iptables as described in MongoDB Official Documentation.