Skip to content

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Jun 28, 2022

What this PR does:

Removes the series fingerprint calculation from the locked code.
We are sorting the series labels and calculating the hash to get the fingerprint. This code can be a little heavy and there is no reason to be locked.

This changed improved the latency on retrieving 1M series from ~37 seconds to ~29 seconds.

Screen Shot 2022-06-28 at 10 06 55 AM

Checklist

  • [NA] Tests updated
  • [NA] Documentation added
  • [NA] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@alanprot alanprot marked this pull request as ready for review June 28, 2022 17:10
@alvinlin123
Copy link
Contributor

Shall we post a benchmark result here?

@alanprot alanprot self-assigned this Jun 28, 2022
@alanprot alanprot merged commit eb84489 into cortexproject:master Jun 29, 2022
alvinlin123 pushed a commit that referenced this pull request Jul 6, 2022
…4765)

* Removing fingerprint calculator from the lock on the GetSeries API

* Add test to prove order does not matter on QueryLimiter,AddSeries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants