Ask Your Question
3

Why does the current connection count in a mongodb replica remain fixed at a higher value (900) until the replica is restarted?

asked 2023-06-27 10:24:58 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-27 10:54:01 +0000

bukephalos gravatar image

There could be several reasons why the current connection count in a MongoDB replica remains fixed at a higher value until the replica is restarted. Some possible reasons are:

  1. Network or server issues: If there are network or server issues, connections may not be closed properly or new ones may not be established. This can result in a higher-than-normal connection count that persists until the replica is restarted.

  2. Application code issues: If the application using the replica does not close connections properly or opens too many connections, this can also lead to a higher-than-normal connection count that persists until the replica is restarted.

  3. Replica configuration issues: If the replica is misconfigured, it may not be able to handle the current connection load properly, resulting in a higher-than-normal connection count.

  4. Bug in MongoDB: In some cases, there may be a bug in MongoDB that causes the connection count to remain fixed at a higher value until the replica is restarted.

In any case, it is important to identify the root cause of the issue and fix it to prevent it from happening again in the future.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-27 10:24:58 +0000

Seen: 9 times

Last updated: Jun 27 '23