Is replicaSetId mandatory for MongoDB 8.0 failover/failback using Percona Kubernetes Operator?

Hi Percona Team,

Good Day!

We are seeking technical clarification regarding the importance of settings.replicaSetId in MongoDB 8.0, particularly when using the Percona Kubernetes Operator for disaster recovery, failover and failback operations.

Environment:

  • Existing MongoDB version: 7.0

  • Feature Compatibility Version: 7.0

  • Target MongoDB version: 8.0

  • Deployment: VM to Kubernetes-based infrastructure Migration

  • Replica set: Six configured members

Observation:

We are doing VM to Pods migration though online sync by adding the pods to existing VM Clusters, During this migration process we identified an existing replica set configuration where settings.replicaSetId was missing on the inspected source VM members.

We also came across the following upstream MongoDB engineering ticket:

Questions :

  1. Is a valid settings.replicaSetId mandatory for MongoDB 8.0 deployments managed by the Percona Kubernetes Operator?

  2. Can a missing replicaSetId impact automatic failover, manual failover, reconciliation or failback operations?

  3. Does the Percona Operator explicitly validate replicaSetId during reconciliation and Can a missing replicaSetId impact automatic failover or failback operations?

  4. What is the officially recommended and supported procedure to remediate a missing replicaSetId without rebuilding the entire replica set?

This information will help us establish production readiness criteria and mitigate potential disaster recovery risks.

Thank you.

Hi, answers below:

  1. it is not mandatory, the operator does not expose a way to configure replicaSetId.
  2. no, as far as I can tell it should work fine.
  3. No. Nodes that join get the config from the existing set, so they inherit “no ID”.
  4. there is no supported procedure. As a workaround you could perform a logical backup and restore into a new replica set.