Hello everyone,
I’m experiencing a recurring issue with high CPU usage on my server when uploading larger files through a Docker container while using aaPanel. I hope to open an interesting discussion and get some insights from the community and aaPanel technicians. Here’s a breakdown of the problem:
System and Setup
Server OS: CentOS Stream 8 x86_64
Control Panel: aaPanel 7.16.0 (Free)
Docker Environment: Running several containers, including open-webui, watchtower, and pipelines.
Issue Details
High CPU Usage During File Uploads:
When uploading files over 5 MB to open-webui, my Docker container’s CPU usage spikes dramatically, sometimes reaching over 600%. This affects the server's overall performance.
Smaller files (around 2 MB or less) upload without significant CPU increase.
Resource Consumption:
The open-webui Docker container consumes around 73% of the CPU during regular operations, and this goes up when handling larger files.
Memory usage remains stable and doesn’t seem to be the limiting factor.
Environment Comparison:
I’m running the same project in another environment without aaPanel, and it works smoothly, even with large file uploads.
This leads me to believe that aaPanel might be interacting with Docker in a way that impacts resource allocation or process management during intensive tasks.
Steps I've Tried So Far
Increased File Upload Limits: Adjusted the file upload size limit in Docker and open-webui, but it didn’t resolve the CPU spike.
Resource Limiting: Tried setting CPU limits on the open-webui Docker container, but the usage remains high when handling larger files.
aaPanel Configurations: Checked aaPanel settings to see if there were any conflicts with Docker’s resource management, but no clear issue was found.
Request for Assistance
I'm looking for guidance or suggestions from those with experience in managing Docker containers within aaPanel. Specifically:
Has anyone else experienced high resource usage with aaPanel while running Docker containers?
Are there any recommended configurations in aaPanel for better compatibility with Docker?
Any insights on optimizing file uploads in Docker to prevent CPU spikes?
I appreciate any help or suggestions! Let’s make this an engaging thread for anyone else facing similar issues.
Thank you!