How to limit resources? #834
Replies: 1 comment
-
|
Hi @martin-picard-parloa! Great question about resource management in hive mode. Here are several strategies you can use to limit resources: 1. Docker Resource Limits (Recommended) services:
claude-flow:
deploy:
resources:
limits:
cpus: '2.0'
memory: 4G
reservations:
cpus: '1.0'
memory: 2G2. Environment Variables
3. System-Level Resource Limits ulimit -v 4000000 # Limit virtual memory to ~4GB
ulimit -u 50 # Limit number of processes4. Hive Mode Configuration 5. Monitoring For M1 Pro with 16GB, I'd recommend starting with max 2-4 concurrent workers and 4GB memory limit. Would you like help with any specific implementation? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried hive mode and it quickly ate up all my CPU and memory, I had to restart my computer haha. What options do I have to limit the resources? I have an M1 Pro 16gb for reference
Beta Was this translation helpful? Give feedback.
All reactions