RocketChat / RocketChat/Rocket.Chat

Gracefully reconnect to mongodb

Open
#7,246 10 comments 5 reactions 1 assignee View on GitHub

@sampaiodiego is already working on this.

Since Jun 14, 2017.

deployment
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

When running rocket.chat in any cloud environment (in my example kubernetes), a mongodb-server might take up some time until it's available. This has also lead to some issues here with docker-compose. Instead of failing right away, there should be an option to just retry a mongodb-connection for a specific period of time with an appropriate commandline and configuration argument like "retryMongoConnection=15". This would retry a mongodb-connection every second for at most 15 seconds.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.