Replies: 2 comments
|
There's currently no built-in configuration to limit the number of workers processing a single file. Here's why and what you can do: When a large PDF (e.g., 8k pages) is uploaded, RAGFlow splits it into ~27 tasks (300 pages per task by default) [1]. All tasks are enqueued to Redis, and any available worker immediately picks them up — so all 6 of your workers can end up saturated by one file [2]. What you can tune today: The concurrency controls available are per-worker, not per-file [3]:
Lowering Workarounds:
For a true per-file worker limit, it would require a code change. The infrastructure is there — every task carries a To reply, just mention @dosu. Docs are dead. Just use Dosu. |
|
There is no per-file worker cap, but you can get the same effect by controlling how many tasks the file is split into. A PDF is cut into tasks of A file can never use more workers than it has tasks. For "at most 2 workers on this file", set the task page size to about half the page count:
Then re-parse. 8000 pages / 4000 = 2 tasks, so other files' tasks still get the remaining 4 workers. Things to know:
If this solves it, please mark it as the answer so others with the same problem can find it. |
Uh oh!
There was an error while loading. Please reload this page.
How to restrict the number of workers being utilized to complete a task (parsing a file)?
All reactions