Connecting to a Remote Mongo Database with Replica Sets

Connect to a remote MongoDB instance with replica sets to create redundancy in your database and mitigate data loss.

Before you begin ensure you meet the following requirements.
  • A server running SystemLink 2021 R1 or later
  • Multiple servers hosting a MongoDB replica set
  • A user with the readWriteAnyDatabase role and the createCollection privilege
    Note The readWrite role does not include the createCollection privilege.
  1. Log into the desktop of the SystemLink server with administrator privileges.
  2. Launch the NI SystemLink Server Configuration and navigate to the NoSqlDatabase tab.
  3. Enable Connect to an externally managed NoSqlDatabase server.
    Note NI recommends securing communications between your SystemLink server and MongoDB instance with TLS.
  4. Enable Use a custom connection string.
  5. Enter a connection string that adheres to the MongoDB standard connection string format. Refer to Connection String Format for more information.
  6. Click Test Connection to ensure SystemLink can connect to the MongoDB instance.
  7. Click Apply to restart SystemLink service manager and connect to the MongoDB instance.