Help Center/
Document Database Service/
User Guide/
Data Restorations/
Restoring Data to an On-Premises Database/
Restoring a Cluster Backup to an On-premises Database/
Restoring the dds mongos Node
Updated on 2024-04-01 GMT+08:00
Restoring the dds mongos Node
- Prepare the configuration file and directory of the dds mongos node.
rm -rf /compile/cluster-restore/mgs*
mkdir -p /compile/cluster-restore/mgs1/log
mkdir -p /compile/cluster-restore/mgs2/log
- Configuration file (restoreconfig/mongos_40301.yaml)
net: bindIp: 127.0.0.1 port: 40301 unixDomainSocket: {enabled: false} processManagement: {fork: true, pidFilePath: /compile/cluster-restore/mgs1/mongos.pid} sharding: {configDB: 'config/127.0.0.1:40303,127.0.0.1:40304,127.0.0.1:40305'} systemLog: {destination: file, logAppend: true, logRotate: reopen, path: /compile/cluster-restore/mgs1/log/mongos.log}
- Configuration file (restoreconfig/mongos_40302.yaml)
net: bindIp: 127.0.0.1 port: 40302 unixDomainSocket: {enabled: false} processManagement: {fork: true, pidFilePath: /compile/cluster-restore/mgs2/mongos.pid} sharding: {configDB: 'config/127.0.0.1:40303,127.0.0.1:40304,127.0.0.1:40305'} systemLog: {destination: file, logAppend: true, logRotate: reopen, path: /compile/cluster-restore/mgs2/log/mongos.log}
- Start the mongo node.
./mongos -f restoreconfig/mongos_40301.yaml
./mongos -f restoreconfig/mongos_40302.yaml
Parent topic: Restoring a Cluster Backup to an On-premises Database
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot