Perform the following steps to create a dSource with the shardedsource ingestion type.
The source and staging instances must meet the host requirements as described in Requirements for MongoDB staging/target hosts.
For creating a dSource type of shardedsource, the Backup Metadata File Name parameter is mandatory. The content of this file should be a single line
datetimevalue, specified in format of
MMDDYYYY_HH24MISS. The content of this file allows the Delphix Continuous Data Engine to validate if there is any new backup uploaded on the staging host that is different from the previous snapshot.
Delphix Continuous Data Engine checks this file based on a SnapSync policy to check whether the new backup is available for ingestion or not. It performs no other checks on backups. If date is updated, Delphix Continuous Data Engine assumes that there are new backup files available in the backup location.
Delphix Continuous Data Engine will reingest backup and take a new snapshot. This file must be updated manually or as a part of the backup/copy script. The following command can be added to the backup script that will be executed as soon as the backup is successful or backup copy is successful.CODE
echo "`date '+%m%d%Y_%H%M%S'`" > /<PATH>/mongo_bkp_metadata.txt
The file name and path must adhere to the organization standard naming convention.
For shardedsource, it is expected to have one configserver backup file and one backup file per shard. It is important to keep the name of backup files same for every new backup. If the file names are changed, it needs to be updated in GUI parameters every time a new backup is uploaded. It is recommended to use some standard naming convention for sharded backups.
The expected backup file format is as follows:
The below list shows the sample names:
Login to Delphix Management application.
Click Manage > Environments.
Click on Add dSource.
In the Add dSource dialog window, select the MongoDB source config created on the staging host.
Select the dSource type from the drop-down list in the dSource dialog window.
Enter the Mongo-specific parameters for your dSource configuration.
dSource Type: This is the Type of dSource.
dSource (Sharded/Replica set) details:
Staging Replicaset Name: This is the staging Database replica set name. The default value is
Staging MongoDB Host: This is the staging host for creating a dSource.
Mount Path: This is the mount Path for dSource MongoDB instance data files.
bindIP String: The default value is
Staging Port: This is the staging host port for MongoDB dSource instance.
dSource tuning details:
Oplog Size: This is the size of
Journal Commit Interval: This is the journal commit interval in ms.
Storage Engine: The default value is
Enable SetParams: Enable the specified
Set Parameter: These are the parameters that must be added in the mongod.conf.
Enable Auditlog: Enable the specified audit log parameters.
Auditlog Parameters: These are the parameters that must be added in the mongod.conf file.
Sharded dSource details:
Mongos Port Number: This is the port that must be used for MongoDB’s router instance.
OpsManager backup details:
Backup Metadata File Name: This is the file that contains backup
datetime. The content of this file is in
Config Backup / Replicaset Backup: This is the absolute path of config backup file name (Sharded).
Shard Backup Files: This is the absolute path of Shard Backup File. Add file for each Shard. One file per shard.
Enable Authentication: Enable member and client authentication for the database.
dSource authentication details:
Mongo Admin User: This is the admin user of the staging database. This user should be created on the fly.
MongoDB Password: This is the admin user password of the staging database.
Cluster Auth Mode: The accepted values are:
KeyAuth keyfile name: This is the absolute path of keyfile.
Enable SSL/TLS: Enable SSL/TLS member authentication.
SSL/TLS Parameters: Specify at least the following parameters;
Enable data encryption: Enable KMIP or keyfile based encryption.
Data encryption details:
Encryption Method: keyfile or KMIP.
Local Encryption keyfile: This is the keyfile path for local encryption.
KMIP Parameters: Provide the KMIP parameter details. For example,
Client Certificate for Mongos/Mongo session on Primary Node: This is the absolute path of client certificate to connect to staging database.
Client CA Certificate for Mongos/Mongo session on Primary Node: This is the absolute path of root CA certificate that signed the client certificate.
Click Submit to create a dSource.
If MongoDB Ops Manager backup is taken when the source database is encrypted, you must select the Source is Encrypted checkbox and provide corresponding values at
Source Encryption Method,
Local Encryption keyfile.
You must specify the inputs
KeyAuth keyfile nameand
Cluster Auth Modewhen Enable Authentication is selected.