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

Add pattern matching workers #99

Merged
merged 9 commits into from
Jul 31, 2018
Merged

Add pattern matching workers #99

merged 9 commits into from
Jul 31, 2018

Conversation

errx
Copy link
Contributor

@errx errx commented Jul 27, 2018

We have encountered a performance issues with moira-filter (slow metrics ingestion which resulted in false-positive NODATA alerts)

The problem is that we have a large number of incoming metrics from a single host (carbon-c-relay in our case).
Current implementation assigns single goroutine per connections for a relatively slow process of pattern matching.

By introducing separate pool of pattern matching workers we completely solved our problem with slow ingestion

@errx errx changed the title Add pattern matcher workers Add pattern matching workers Jul 27, 2018
@@ -57,6 +57,10 @@ func main() {
os.Exit(1)
}

if config.Filter.MaxParallelChecks == 0 {
fmt.Fprint(os.Stderr, "MaxParallelChecks does not configured, filter does not started")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Правильнее написать:

MaxParallelChecks is not configured, filter does not start

@coveralls
Copy link

coveralls commented Jul 27, 2018

Coverage Status

Coverage decreased (-0.02%) to 83.99% when pulling b632013 on errx:matcher-pool into 42a7350 on moira-alert:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants