Percona backup for mongodb support

Hello Everyone,

Currently, I am trying to take a backup of MongoDB and restore it using Percona Backup for MongoDB (PBM).

In our setup, MongoDB is running on an AWS EKS cluster as a StatefulSet with two MongoDB pods. I would like to take a backup of this MongoDB instance — either a logical or incremental backup — and store it on a local EFS volume.

At present, I have deployed the PBM agent as a Deployment with two replicas, and everything seems to be running fine. However, when I try to take a logical backup, I get the following error:

Error: get backup metadata: get: context deadline exceeded

Could you please help me understand how to resolve this issue?
Or, if you have a recommended approach for taking backups in this kind of EKS + StatefulSet setup using Percona, please guide me through the correct process.

Thanks in Advance

Hi @shankarchidirala and welcome to our community!

Your current problem most likely comes from the fact that you use local EFS volumes for each pod. In a multi-member cluster of a MongoDB ReplicaSet, you need to have a network storage shared across all MongoDB nodes.

In your setup, I’d recommend using our operator. Here’s how you can start: Install on Amazon Elastic Kubernetes Service (AWS EKS) - Percona Operator for MongoDB