From 834dfc1906d401bde9aa5d3c801d75b0129c6a95 Mon Sep 17 00:00:00 2001 From: Rootkit Date: Thu, 20 Aug 2026 10:43:22 +0800 Subject: [PATCH] Add ulimits for cpu and gpu services in Docker Compose (#17205) ### Summary fix OSError: [Errno 24] Too many open files --- docker/docker-compose.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 5194984bae..454567e924 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -26,6 +26,13 @@ services: profiles: - cpu image: ${RAGFLOW_IMAGE} + ulimits: + nofile: + soft: 65535 + hard: 65535 + nproc: + soft: 65535 + hard: 65535 # Example configuration to set up an MCP server: # command: # - --enable-mcpserver @@ -78,6 +85,13 @@ services: profiles: - gpu image: ${RAGFLOW_IMAGE} + ulimits: + nofile: + soft: 65535 + hard: 65535 + nproc: + soft: 65535 + hard: 65535 # Example configuration to set up an MCP server: # command: # - --enable-mcpserver