How to deal with "task processor queue reached 500"?

Hello,

I’ve got an Asterisk 20.X instance that manages at most 20 to 40 simultaneous calls.In its log, I can read many lines such as:

[Oct 3 14:53:20] WARNING[3670996][C-000dd932] taskprocessor.c: The ‘stasis/pool-control’ task processor queue reached 500 scheduled tasks again.

  1. Is there a safe way to increase this 500 limit ?
  2. How can I correlate this messages with the output of ‘core show taskprocessors’ ? Said differently, does it relate to low/hig mark column ? the number of lines printed by ‘core show taskprocessors’ ? Something else ?
  3. I’ve seen a recent PR #1339. Will it likely or not, help for this case ?

Best regards

The limit is for the warning. You could change the limit in the code itself, and that would make the message stop. It doesn’t stop the actual tasks being queued, though. This message is a symptom. It is not a cause. What issues are you experiencing?

It is the high water mark and what the maximum the taskprocessor has hit.

It will help in the sense that the taskprocessor will no longer exist that is reaching 500 tasks, and the change has been shown to result in lower CPU usage and better taskprocessor usage for stasis in general.

At the moment, I’ve just discovered (a lot of) WARNING in the logs. I can describe any issue for now. Hopefully there are none ;-).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.