Title
Create new category
Edit page index title
Edit category
Edit link
Disaster Recovery Strategy for MongoDB and VictoriaDB
Prerequisites
A minimum of three nodes to enable High Availability are required
MongoDB Version 6 is required for this setup
Steps to Deploy Pulse on New Node
Set the MongoDB URI:
Enable MongoDB Encryption:
Configure Pulse as a Standalone Node:
Create necessary directory structure:
Move the Pulse executable to the designated directory:
Navigate to the Pulse directory:
Initialize Pulse:
Source the environment variables:
Reinitialize Pulse:
Retrieve Pulse information:
Log in to Pulse Docker:
Add Host Entries
Add the following entries to the /etc/hosts file of all the MongoDB nodes, including the Pulse server:
Set New MongoDB Nodes
Retrieve the accelo binary and initiate it with the same version tag as the Pulse version on the primary node.
Login to the Pulse Registry:
Create a new Docker network:
Manually download the Mongo image:
Configuring the Primary Node (Pulse Server)
Edit Configuration File: In the
config/docker/ad-core.yamlfile, add the following new fields to thead-dbservice section:
Add the following fields to the
environmentblock:
Add the following fields to the
volumesblock:
Add the following fields to the
extra_hostsblock:
Run Secondary Data Replica: Replace
<Pulse-Server-IP>,<Third-Node-IP>, and<PULSE-VERSION>with the appropriate values and execute:
Run Third Data Replica: Replace
<Pulse-Server-IP>,<Second-Node-IP>, and<PULSE-VERSION>with the appropriate values and execute:
Login to Primary Node's MongoDB Shell & Add Replica Members:
Check Replica Status: Run
rs.status()to check the status of the replica.Wait for Stable State: Wait for the MongoDB cluster to stabilize.
Update Mongodb Encrypted URI: Replace the MongoDB encrypted URI in all YAML files under
config/docker/andacceldata_acceluster.conffile with the provided value.
Unencrypted string for reference:
VictoriaDB Setup for Backup and Restoration
This is specifically aimed at addressing disk failures; hence, the destination path will reside on a distinct mounted disk.
To setup Victoria database for backup and restore, perform the following:
Navigate to the Acceldata directory.
Fetch the binaries you want to backup and restore using the below command:
Extract the contents of the above tar file:
Remove unnecessary binaries, except
vmbackupandvmrestore.Execute the shell script:
Create a new directory for
vmdbbackupas below:
Open up access to the
ad-vmstorageport by modifying the ad-core.yml file as shown below.
Restart
vmstoragecontainer using:
Execute the following command. This command initiates an incremental backup process. Incremental backups are conducted when the destination (-dst) parameter refers to an existing backup directory. After the initial backup is completed, subsequent backups will always target this existing backup directory.
Configure the crontab to execute this task once daily, preferably in the morning:
Steps to Restore
To restore from backup, perform the following:
Stop the vmstorage container, if it already running, and run the restore command:
Run
accelo deploy coreCheck the logs of the container using
docker logs -f ad-vmstorage_default
Troubleshooting
If the backup process is slow, consider adjusting the value of the -concurrency flag to a higher setting. This will boost the number of simultaneous workers responsible for uploading data to the backup storage.
If vmrestore or vmbackup encounters an interruption due to a temporary error, simply restart it using the same arguments. The process will resume from where it left off, continuing the restore or backup operation.
For additional help, contact www.acceldata.force.com OR call our service desk +1 844 9433282
Copyright © 2026