Skip to content

Commit 538f868

Browse files
hanzeiclaude
andauthored
Document migration from pids_limit to mem_limit for Docker deployments (#8695)
Add note explaining why pids_limit was removed in favor of mem_limit. PostgreSQL's one-process-per-connection model caused production failures with pids_limit: 100, restricting deployments to ~90-95 concurrent connections. Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2c83057 commit 538f868

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

source/deployment-guide/server/containers/install-docker.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ This section provides a quick start guide for deploying Mattermost on Docker by
2828
- The deployment configuration results in two separate containers: a container for the database and a container for the application. An optional third container results when using NGINX for reverse proxy.
2929
- Encountering issues with your Docker deployment? See the :doc:`Docker deployment troubleshooting </deployment-guide/server/docker-troubleshooting>` documentation for details.
3030

31+
.. note::
32+
33+
**Resource limits:** Previous versions of the Docker deployment used ``pids_limit`` to constrain container processes. This caused PostgreSQL connection failures in production because PostgreSQL creates one process per connection, limiting deployments to ~90-95 concurrent connections with ``pids_limit: 100``. We now recommend using ``mem_limit`` instead to constrain resources while allowing normal connection scaling. See the `Mattermost Scaling for Enterprise documentation <https://docs.mattermost.com/administration-guide/scale/scaling-for-enterprise.html>`__ for sizing guidance.
34+
3135
1. In a terminal window, clone the repository and enter the directory.
3236

3337
.. code-block:: sh

0 commit comments

Comments
 (0)