# Many restart pod percona-server rs0

**URL:** <https://forums.percona.com/t/many-restart-pod-percona-server-rs0/38235>\
**Category:** Percona Server for MongoDB\
**Tags:** percona, mongodb\
**Created:** [June 7, 2025, 6:31am UTC](https://forums.percona.com/t/many-restart-pod-percona-server-rs0/38235 "2025-06-07T06:31:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamidreza\_hosseini](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/hamidreza_hosseini/32/21206_2.png) [@hamidreza\_hosseini](https://forums.percona.com/u/hamidreza_hosseini)\
**Post date:** [June 7, 2025, 6:31am UTC](https://forums.percona.com/t/many-restart-pod-percona-server-rs0/38235/1 "2025-06-07T06:31:15Z")

</div>

hi, i setup the percona-server and percona-operator on the kubernetes cluster using helm.  
percona-server pods after starting, many restart every some seconds.  
this is the latest log befor restart pod:

> {“t”:{“$date”:“2025-06-07T06:29:34.233+00:00”},“s”:“I”, “c”:“REPL\_HB”, “id”:23974, “ctx”:“ReplCoord-0”,“msg”:“Heartbeat failed after max retries”,“attr”:{“target”:“percona-server-psmdb-rs0-0.percona-server-psmdb-rs0.mongo-percona.svc.cluster.local:27017”,“maxHeartbeatRetries”:2,“error”:{“code”:6,“codeName”:“HostUnreachable”,“errmsg”:“Error connecting to percona-server-psmdb-rs0-0.percona-server-psmdb-rs0.mongo-percona.svc.cluster.local:27017 :: caused by :: Could not find address for percona-server-psmdb-rs0-0.percona-server-psmdb-rs0.mongo-percona.svc.cluster.local:27017: SocketException: onInvoke :: caused by :: Host not found (authoritative)”}}}

> {“t”:{“$date”:“2025-06-07T06:21:19.999+00:00”},“s”:“I”, “c”:“-”, “id”:4939300, “ctx”:“monitoring-keys-for-HMAC”,“msg”:“Failed to refresh key cache”,“attr”:{“error”:“ReadConcernMajorityNotAvailableYet: Read concern majority reads are currently not possible.”,“nextWakeupMillis”:300000}}

this is my percona-server values:

```auto
replsets:
  rs0:
    name: rs0
    size: 3
    affinity:
      antiAffinityTopologyKey: "kubernetes.io/hostname"
    podDisruptionBudget:
      maxUnavailable: 1
    resources:
      limits:
        cpu: "1000m"
        memory: "2G"
      requests:
        cpu: "1000m"
        memory: "2G"

    livenessProbe:
      timeoutSeconds: 30
      periodSeconds: 30
      failureThreshold: 6
    readinessProbe:
      initialDelaySeconds: 10
      timeoutSeconds: 10
      periodSeconds: 10
      failureThreshold: 8

```

---

<div class="post-metadata">

**Author:** ![yunus.uyanik](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/yunus.uyanik/32/19250_2.png) [@yunus.uyanik](https://forums.percona.com/u/yunus.uyanik)\
**Post date:** [June 23, 2025, 9:55am UTC](https://forums.percona.com/t/many-restart-pod-percona-server-rs0/38235/2 "2025-06-23T09:55:37Z")

</div>

Hi @hamidreza_hosseini,

The pods cannot find each other’s addresses (`Host not found` error), so the replica set fails to initialize. This triggers your liveness/readiness probes, causing the pods to enter a constant restart loop.

Verify that you don’t have a `NetworkPolicy` in the `mongo-percona` namespace that is blocking DNS traffic. Ensure the service created by the operator, named `percona-server-psmdb-rs0`

---

<div class="post-metadata">

**Author:** ![hamidreza\_hosseini](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/hamidreza_hosseini/32/21206_2.png) [@hamidreza\_hosseini](https://forums.percona.com/u/hamidreza_hosseini)\
**Post date:** [September 21, 2025, 7:28am UTC](https://forums.percona.com/t/many-restart-pod-percona-server-rs0/38235/3 "2025-09-21T07:28:36Z")

</div>

Thanks @yunus.uyanik
