# Percona MongoDB operator is causing high number of connections to the database

**URL:** <https://forums.percona.com/t/percona-mongodb-operator-is-causing-high-number-of-connections-to-the-database/29025>\
**Category:** Percona Operator for MongoDB\
**Tags:** mongodb\
**Created:** [March 7, 2024, 6:47pm UTC](https://forums.percona.com/t/percona-mongodb-operator-is-causing-high-number-of-connections-to-the-database/29025 "2024-03-07T18:47:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sai\_krishna](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sai_krishna/32/14121_2.png) [@Sai\_krishna](https://forums.percona.com/u/Sai_krishna)\
**Post date:** [March 7, 2024, 6:47pm UTC](https://forums.percona.com/t/percona-mongodb-operator-is-causing-high-number-of-connections-to-the-database/29025/1 "2024-03-07T18:47:54Z")

</div>

Hi all,

Percona operator is causing connection spike on the database. Here is the sample connection. Can we throttle the connections from operator?

```
type: 'op',
  host: 'mgdb-rs0-1:27017',
  desc: 'conn326588',
  connectionId: 326588,
  client: '10.0.0.111:54304',
  clientMetadata: {
    driver: { name: 'mongo-go-driver', version: 'v1.12.1' },
    os: { type: 'linux', architecture: 'amd64' },
    platform: 'go1.20.9'
  },
  active: true,
  currentOpTime: '2024-03-07T17:28:38.017+00:00',
  threaded: true,
  opid: 55231681,
  secs_running: Long("9"),
  microsecs_running: Long("9012110"),
  op: 'command',
  ns: 'admin.$cmd',
  command: {
    hello: 1,
    helloOk: true,
    topologyVersion: {
      processId: ObjectId("65e7659bc3f54ff574dfe7d3"),
      counter: Long("19")

```

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [April 1, 2024, 8:31am UTC](https://forums.percona.com/t/percona-mongodb-operator-is-causing-high-number-of-connections-to-the-database/29025/2 "2024-04-01T08:31:50Z")

</div>

Hey @Sai_krishna ,

thanks for bringing this up.  
The issue right now is that we reconcile the `psmdb` object in Operator every 5 seconds, even there are no changes. This creates a connection and sends some pings to the cluster.

The best solution here would be to improve this reconcilation on the Operator level, not throttling it on DB side.

Meanwhile, could you please share if it impacts your database in any way?

---

<div class="post-metadata">

**Author:** ![Pim](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pim/32/22456_2.png) [@Pim](https://forums.percona.com/u/Pim)\
**Post date:** [October 28, 2025, 6:47am UTC](https://forums.percona.com/t/percona-mongodb-operator-is-causing-high-number-of-connections-to-the-database/29025/3 "2025-10-28T06:47:11Z")

</div>

I’m experiencing the same with Percona Operator for MongoDB 1.21.0 on AWS EKS 1.34.  
After starting the Operator it keeps creating connections until it reaches OOM and dies. In my case this is around 8000 connections. It creates about one connection per second.

 ![CleanShot 2025-10-28 at 16.46.26@2x](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/4/f/4f1646516e6dd93b233f3323bdff30b370d95a2e.png)

Please let me know what info I can provide to help find a solution.  
I’ve created a seperate post here: [https://forums.percona.com/t/percona-operator-for-mongodb-endlessly-spawning-connections-until-oomkilled](https://forums.percona.com/t/percona-operator-for-mongodb-endlessly-spawning-connections-until-oomkilled)
