Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TheHive is stalled while importing Alerts with a large number of observables #1416

Closed
jeromeleonard opened this issue Jun 29, 2020 · 2 comments
Assignees
Milestone

Comments

@jeromeleonard
Copy link
Contributor

Issue

In somes cases, when alerts with a high number of observables is imported, TheHive become unreachable, despite CPUs with 8 cores. TheHive distributes importing tasks on several threads in order to use full capabilities of multi-core CPU : it directly depends from the number of cores. Importing an event create a task for each observable and then monopolize almost all threads. Other tasks have to wait for threads to become free.

Solution

The solution is use dedicated thread pool for all tasks that requires high number of threads. This allocates new threads for dedicated tasks.

@jeromeleonard jeromeleonard added this to the 3.5.0-RC1 milestone Jun 29, 2020
@To-om To-om self-assigned this Aug 11, 2020
@To-om To-om closed this as completed Aug 12, 2020
@To-om
Copy link
Contributor

To-om commented Aug 12, 2020

fixed by a320572

@To-om
Copy link
Contributor

To-om commented Oct 8, 2020

The fix does not work completely

@To-om To-om reopened this Oct 8, 2020
@To-om To-om modified the milestones: 3.5.0-RC1, 3.5.0-RC2 Oct 8, 2020
@To-om To-om modified the milestones: 3.5.0, 3.4.3 Oct 26, 2020
To-om added a commit that referenced this issue Oct 26, 2020
@To-om To-om closed this as completed Oct 26, 2020
To-om added a commit that referenced this issue Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants