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

Shard Time Series Requests in Trickster 2.0 #573

Merged
merged 9 commits into from
May 26, 2021

Conversation

jranson
Copy link
Member

@jranson jranson commented May 26, 2021

This patch extends the Time Series Delta Proxy Cache with the ability to shard requests to an origin for uncached data into smaller, concurrent requests, for which the results are reconstituted back into a single dataset. The manner in which the shard sizes and time ranges are determined is controlled by 3 new shard_* backend configuration values as documented herein.

Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Copy link
Contributor

@LimitlessEarth LimitlessEarth left a comment

Choose a reason for hiding this comment

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

This is awesome

Signed-off-by: James Ranson <james@ranson.org>
@jranson jranson merged commit baaf93a into trickstercache:main May 26, 2021
@nbroyles
Copy link

Neat! Could also be useful to take the same approach for a kmiss in addition to rmiss and phit.

@jranson
Copy link
Member Author

jranson commented May 27, 2021

@nbroyles good news! this does actually handle kmiss as well, since the base fetchTimeSeries func has been updated to perform the extent list Splice, and use the new fetchExtents() method. So prior to this PR, kmiss had one way to grab a full timeseries, and phit/rmiss had another way to do whatever was needed in parallel to grab partial or disparate data. Now the "do whatever needed in parallel" logic is encapsulated into fetchExtents, which is now called in all non-hit scenarios.

@jranson jranson deleted the 2.0-shard-requests branch January 23, 2023 16:10
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.

None yet

3 participants