Skip to main content

Mongodb Setup

All tiCrypt new versions prior to 3.2.0 require a MongoDB replication set for transactions.

Single-node Configuration

  1. While it is possible to set up a single-node replica set, it is not recommended for a non-testing environment.

To set up a single-node replica set, add this to the MongoDB config file (by default found in /etc/mongod.conf)

replication:
replSetName: ticrypt
  1. replSetName can be set to anything, e.g. the name of a specific deployment.

Then, launch mongo through systemctl:

systemctl enable mongod.service
systemctl start mongod.service

Once the mongod instance is running, log into the db through the mongo shell and execute

rs.init()

After restarting mongod, the service should now start as a single-node replica set.

Multiple-node Configuration

This section is under maintanance.