[PR #492] Dockerfile, startup script: add rabbitmq ulimit #632

Open
opened 2026-02-26 10:33:20 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ONLYOFFICE/Docker-DocumentServer/pull/492
Author: @t-lo
Created: 9/12/2022
Status: 🔄 Open

Base: masterHead: t-lo/add-rabbitmq-ulimit


📝 Commits (2)

  • f25453a Dockerfile, startup script: add rabbitmq ulimit
  • c9d4e58 Merge branch 'ONLYOFFICE:master' into t-lo/add-rabbitmq-ulimit

📊 Changes

2 files changed (+15 additions, -1 deletions)

View changed files

📝 Dockerfile (+5 -1)
📝 run-document-server.sh (+10 -0)

📄 Description

This change works around an issue in the rabbitmq-server version shipped with Ubuntu 20.04. Large emptyfiles limits in docker containers which run on hosts with low emptyfiles limits cause rabbitmq to break. It will use use 100% CPU of a single core when started, then time out (i.e. fail to start). An erlang process 'erl_child_setup' will continue to use 100% CPU even after rabbitmq failed to start (see https://github.com/docker-library/rabbitmq/issues/545).

The change adds a default emptyfiles limit to rabbitmq-server via /etc/default/rabbitmq-server, which is created in the Dockerfile before rabbitmq is installed. The default is generous: 65536.

Additionally, the change adds a new container environment variable RABBITMQ_EMPTYFILES_LIMIT which, when set, will override the default above.

Fixes https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/491 .


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ONLYOFFICE/Docker-DocumentServer/pull/492 **Author:** [@t-lo](https://github.com/t-lo) **Created:** 9/12/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `t-lo/add-rabbitmq-ulimit` --- ### 📝 Commits (2) - [`f25453a`](https://github.com/ONLYOFFICE/Docker-DocumentServer/commit/f25453a178bc801d34b8b79c43f251aa49bfbd09) Dockerfile, startup script: add rabbitmq ulimit - [`c9d4e58`](https://github.com/ONLYOFFICE/Docker-DocumentServer/commit/c9d4e58f948460a25606395f74f0baeafea594f1) Merge branch 'ONLYOFFICE:master' into t-lo/add-rabbitmq-ulimit ### 📊 Changes **2 files changed** (+15 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+5 -1) 📝 `run-document-server.sh` (+10 -0) </details> ### 📄 Description This change works around an issue in the rabbitmq-server version shipped with Ubuntu 20.04. Large emptyfiles limits in docker containers which run on hosts with low emptyfiles limits cause rabbitmq to break. It will use use 100% CPU of a single core when started, then time out (i.e. fail to start). An erlang process 'erl_child_setup' will continue to use 100% CPU even after rabbitmq failed to start (see https://github.com/docker-library/rabbitmq/issues/545). The change adds a default emptyfiles limit to rabbitmq-server via `/etc/default/rabbitmq-server`, which is created in the Dockerfile before rabbitmq is installed. The default is generous: 65536. Additionally, the change adds a new container environment variable `RABBITMQ_EMPTYFILES_LIMIT` which, when set, will override the default above. Fixes https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/491 . --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#632
No description provided.