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

Poor performance for tag completion endpoints #1453

Closed
6 tasks done
arnikola opened this issue Mar 13, 2019 · 3 comments
Closed
6 tasks done

Poor performance for tag completion endpoints #1453

arnikola opened this issue Mar 13, 2019 · 3 comments
Assignees
Labels
area:index All issues pertaining to m3ninx and m3db's index area:query All issues pertaining to query P: High T: Perf

Comments

@arnikola
Copy link
Collaborator

arnikola commented Mar 13, 2019

Users have been reporting poor performance when hitting any of the tag completion endpoints in m3query and m3coordinator; these requests are slow and often OOM clusters.

The root cause of this is that the M3DB client does not expose an endpoint to list available tag name/pairs, and m3query must make do by fetching all IDs matching the request then deduping them. Essentially, this means that trying to get a list of available tags pulls every single series into memory within M3DB, returns it up to Query, and then processed to return the list of valid tags.

This issue affects Grafana templating, Graphite find endpoints, and any tag completion features.

This issue will track work to build and expose a tag completion endpoint in M3DB which will greatly increase the performance, and reduce the memory overhead required to perform these requests.

Most of these are being done independently but there's a few dependancies which will be called out:

@arnikola arnikola added T: Perf P: High area:query All issues pertaining to query area:index All issues pertaining to m3ninx and m3db's index labels Mar 13, 2019
@arnikola arnikola self-assigned this Mar 13, 2019
@evanhuang996
Copy link

How is the progress?

@arnikola
Copy link
Collaborator Author

arnikola commented Mar 21, 2019

Hey, will add a checklist to the issue post for slightly better tracking. Most of these have PRs close to landing; there'll be a little refactoring work to ensure our interfaces match on all sides and some amount of smoke testing required, but it's looking close.

@arnikola
Copy link
Collaborator Author

Resolved in 0.8.0 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:index All issues pertaining to m3ninx and m3db's index area:query All issues pertaining to query P: High T: Perf
Projects
None yet
Development

No branches or pull requests

2 participants