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

[Enhancement] Integrity check improvement #2334

Closed
To-om opened this issue Feb 4, 2022 · 0 comments
Closed

[Enhancement] Integrity check improvement #2334

To-om opened this issue Feb 4, 2022 · 0 comments
Labels
Milestone

Comments

@To-om
Copy link
Contributor

To-om commented Feb 4, 2022

Request Type

Enhancement

Feature Description

The integrity checks can make TheHive run under heavy load, depending of the amount of data. Currently, each integrity check run randomly every 6 hours. The goal of this issue is to run the integrity checks in a dedicated time slot, configures using cron-like expression. Integrity checks can also be time limited, cancellable and resumable.
New APIs are:

POST /api/v1/admin/check/<entityName>/dedup/trigger    Trigger a deduplication
POST /api/v1/admin/check/<entityName>/global/trigger   Trigger a global check
POST /api/v1/admin/check/cancel                        Cancel the current check
GET /admin/index/status                                Returns statistics on checks

New configuration:

integrityCheck.enabled: true  // run integrity check periodically
integrityCheck.schedule: "0 30 2 ? * SUN" // cron expression to trigger an integrity check
integrityCheck.maxDuration: 4 hours // stop integrity check after 4 hours
integrityCheck.integrityCheckConfig.XXX.enabled: true // run integrity check on XXX (Case, Observable, Task, User, ...)
//integrityCheck.integrityCheckConfig.XXX.minTime: 1 minute // minimum time allocated to this integrity check (default: none)
//integrityCheck.integrityCheckConfig.XXX.maxTime: 1 hour // maximum time allocated to this integrity check (default: none)
integrityCheck.integrityCheckConfig.XXX.dedupStrategy: AfterAddition // run dedup check after adding an element (possible values:  AfterAddition, DuringGlobalChecks, AfterAdditionAndDuringGlobalChecks or Disable)
integrityCheck.integrityCheckConfig.XXX.initialDelay: 1 minute // run dedup 1 minute after addition
integrityCheck.integrityCheckConfig.XXX.minInterval: 10 minutes // minimum interval between two dedups 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants