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

**URL:** <https://forums.percona.com/t/is-replicasetid-mandatory-for-mongodb-8-0-failover-failback-using-percona-kubernetes-operator/41518>\
**Category:** Percona Operator for MongoDB\
**Tags:** psmdb-operator, mongodb, percona\
**Created:** [December 3, 2026, 6:46am UTC](https://forums.percona.com/t/is-replicasetid-mandatory-for-mongodb-8-0-failover-failback-using-percona-kubernetes-operator/41518 "2026-12-03T06:46:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surendar](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/surendar/32/24634_2.png) [@Surendar](https://forums.percona.com/u/Surendar)\
**Post date:** [December 3, 2026, 6:46am UTC](https://forums.percona.com/t/is-replicasetid-mandatory-for-mongodb-8-0-failover-failback-using-percona-kubernetes-operator/41518/1 "2026-12-03T06:46:15Z")

</div>

## 

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:

> **[Loading...](https://jira.mongodb.org/browse/SERVER-93867)**

**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.

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [December 3, 2026, 11:49am UTC](https://forums.percona.com/t/is-replicasetid-mandatory-for-mongodb-8-0-failover-failback-using-percona-kubernetes-operator/41518/2 "2026-12-03T11:49:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Deepak\_Rai](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/deepak_rai/32/24425_2.png) [@Deepak\_Rai](https://forums.percona.com/u/Deepak_Rai)\
**Post date:** [December 3, 2026, 1:58pm UTC](https://forums.percona.com/t/is-replicasetid-mandatory-for-mongodb-8-0-failover-failback-using-percona-kubernetes-operator/41518/3 "2026-12-03T13:58:19Z")

</div>

Hi @Surendar,

Adding to Ivan’s answer, we tested a replica set with settings.replicaSetId missing on all members, on PSMDB 7.0 and 8.0, and with Operator 1.23.1. Failover, failback and reconcile all worked fine.

The only thing I would check is that replicaSetId is the same on all members, VMs and pods (either missing on all of them, or the same ObjectId on all of them). Connect to each member directly (not through the replica set connection string) and run:

```auto
db.getSiblingDB("local").system.replset.findOne().settings.replicaSetId

```

You mentioned it’s missing on the VM members you checked, so it should return nothing on the rest as well, including the pods. If any member returns an ObjectId, share the output from all members before changing anything.
