[GH-ISSUE #2976] [BUG]: Ability to utilize multiple CPU cores #1900

Closed
opened 2026-02-22 18:27:08 -05:00 by yindo · 1 comment
Owner

Originally created by @pmffromspace on GitHub (Jan 15, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2976

How are you running AnythingLLM?

Docker (local)

What happened?

Current Behavior

When running AnythingLLM in Docker, the application appears to only utilize a single CPU core, even when multiple cores are available on the host system. I've noticed this through monitoring container resource usage.

Expected/Desired Behavior

Ability to utilize multiple CPU cores for improved performance, particularly for resource-intensive operations like LLM inference, document processing, or handling multiple concurrent requests.

Questions

  1. Is multi-core utilization already supported, and if so, could you point me to the configuration documentation?
  2. If not currently supported, is this a planned feature for future releases?
  3. Are there any current workarounds or best practices for scaling CPU utilization in production deployments?

Environment

  • Deployment method: Docker
  • Using official Dockerfile from repository
  • Host system has multiple CPU cores available

Additional Context

I've tried standard Docker CPU configuration (--cpus, --cpu-shares) but the application still appears to run on a single core. If this is expected behavior, I'd appreciate understanding the architectural decisions behind this.

Looking forward to your guidance on this matter. Thank you!

Are there known steps to reproduce?

No response

Originally created by @pmffromspace on GitHub (Jan 15, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/2976 ### How are you running AnythingLLM? Docker (local) ### What happened? ### Current Behavior When running AnythingLLM in Docker, the application appears to only utilize a single CPU core, even when multiple cores are available on the host system. I've noticed this through monitoring container resource usage. ### Expected/Desired Behavior Ability to utilize multiple CPU cores for improved performance, particularly for resource-intensive operations like LLM inference, document processing, or handling multiple concurrent requests. ### Questions 1. Is multi-core utilization already supported, and if so, could you point me to the configuration documentation? 2. If not currently supported, is this a planned feature for future releases? 3. Are there any current workarounds or best practices for scaling CPU utilization in production deployments? ### Environment - Deployment method: Docker - Using official Dockerfile from repository - Host system has multiple CPU cores available ### Additional Context I've tried standard Docker CPU configuration (--cpus, --cpu-shares) but the application still appears to run on a single core. If this is expected behavior, I'd appreciate understanding the architectural decisions behind this. Looking forward to your guidance on this matter. Thank you! ### Are there known steps to reproduce? _No response_
yindo added the possible bug label 2026-02-22 18:27:08 -05:00
yindo closed this issue 2026-02-22 18:27:08 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jan 15, 2025):

NodeJS is single threaded, even if multiple cores are available the language itself only uses 1 core. The only way around this is to re-arch some subservices into worker_threads or leveraging cluster

@timothycarambat commented on GitHub (Jan 15, 2025): NodeJS is single threaded, even if multiple cores are available the language itself only uses 1 core. The only way around this is to re-arch some subservices into `worker_threads` or leveraging `cluster`
yindo changed title from [BUG]: Ability to utilize multiple CPU cores to [GH-ISSUE #2976] [BUG]: Ability to utilize multiple CPU cores 2026-06-05 14:43:21 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1900