# Does the operator have rack awareness?

**URL:** https://forums.percona.com/t/does-the-operator-have-rack-awareness/7778
**Category:** Percona Operator for MongoDB
**Tags:** percona, mongodb
**Created:** [July 16, 2020, 2:08am UTC](https://forums.percona.com/t/does-the-operator-have-rack-awareness/7778 "2020-07-16T02:08:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Anjitha](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/anjitha/32/1358_2.png) [@Anjitha](https://forums.percona.com/u/Anjitha)
#### Post date: [July 16, 2020, 2:08am UTC](https://forums.percona.com/t/does-the-operator-have-rack-awareness/7778/1 "2020-07-16T02:08:53Z")

</div>

I am looking into a high availability scenario for the operator. Consider that one node goes down, what happens to the data? I know that one of the DB pods is primary and the others secondary. Is this a concept that was created to provide a high availability solution? How can I ensure a failover design that can move the data, storage etc to another instance (or node), ensuring no data loss? Or is it a feature of the operator that once the primary DB pod goes down, another takes its place as the primary? I would imagine rack awareness, where each node is in a different region can be a good alternative.&nbsp;  
PS: I am very new to the operator, so apologies if I have understood this wrong. Any suggestion or information is appreciated.&nbsp;

---

<div class="post-metadata">

### Author: ![vadimtk](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadimtk/32/9528_2.png) [@vadimtk](https://forums.percona.com/u/vadimtk)
#### Post date: [August 5, 2020, 4:26pm UTC](https://forums.percona.com/t/does-the-operator-have-rack-awareness/7778/2 "2020-08-05T16:26:23Z")

</div>

Operator has an “anti-affinity” rules which you can specify to force nodes to be located in separate locations

---

<div class="post-metadata">

### Author: ![vadimtk](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadimtk/32/9528_2.png) [@vadimtk](https://forums.percona.com/u/vadimtk)
#### Post date: [August 5, 2020, 4:27pm UTC](https://forums.percona.com/t/does-the-operator-have-rack-awareness/7778/3 "2020-08-05T16:27:45Z")

</div>

See for example  
[https://github.com/percona/percona-xtradb-cluster-operator/blob/master/deploy/cr.yaml](https://github.com/percona/percona-xtradb-cluster-operator/blob/master/deploy/cr.yaml "Link: https://github.com/percona/percona-xtradb-cluster-operator/blob/master/deploy/cr.yaml")

```auto
affinity:

```

section
