You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The other day I launched a lot of analyzers (about 1000), this morning I looked and many followed in "waiting".
I went to see the tasks that were running and I could see that there were 4 analyzers running. I killed these processes and then the akka dispatcher started to launch the rest, it was completely blocked.
As far as I can see, this could be because these analyzers did external queries and possibly in some of these requests the connection was lost. And if, in the requests is not specified a "timeout", these remain open, the script does not end and the dispatcher is blocked.
Steps to Reproduce
I have managed to reproduce the case in the following way, in case you want to try it:
For now, with this solution I'm not having problems, but I don't know if there would be another internal way to control this type of situation(from akka configuration or something like that).
Hello... I had the same issue. I was running an analyzer that may take a looooot of time and I was wondering if, at a certain point, the job gets automatically killed.
If an analyzer never ends, it blocks Cortex. In order to solve this issue, I'll add a job timeout. If a job reaches it, the process of the analyzer will be killed.
@To-om If possible try to make it configurable. e.g. I sometimes have jobs that takes about 30 minutes to analyze. Maybe it also would be an option to configure the number of analyzers that could run in parallel.
Akka dispatcher blocked
Request Type
Feature Request
Work Environment
Problem Description
The other day I launched a lot of analyzers (about 1000), this morning I looked and many followed in "waiting".
I went to see the tasks that were running and I could see that there were 4 analyzers running. I killed these processes and then the akka dispatcher started to launch the rest, it was completely blocked.
As far as I can see, this could be because these analyzers did external queries and possibly in some of these requests the connection was lost. And if, in the requests is not specified a "timeout", these remain open, the script does not end and the dispatcher is blocked.
Steps to Reproduce
I have managed to reproduce the case in the following way, in case you want to try it:
Possible Solutions
The solution I had to implement is the following:
Can see the documentation here: http://docs.python-requests.org/en/master/user/quickstart/#timeouts
For now, with this solution I'm not having problems, but I don't know if there would be another internal way to control this type of situation(from akka configuration or something like that).
Complementary information
https://doc.akka.io/docs/akka/2.5/dispatchers.html
https://github.com/TheHive-Project/Cortex/blob/e4ee899a2d2a2bedae4e139befe0082f6ca4e5a8/conf/reference.conf
The text was updated successfully, but these errors were encountered: