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

Streaming store-gateway: add structs and interfaces for sets of series #3587

Merged
merged 2 commits into from
Nov 30, 2022

Conversation

dimitarvdimitrov
Copy link
Contributor

This is the first PR in which we are introducing code related to the
streaming implementation of the store-gateway.

This PR introduces two prod files and two test files.

  • series_refs.go contains structs and interfaces for holding and
    iterating over a set of series which still doesn't have chunks yet.
    It only contains refs to chunks and labels.

  • series_chunks.go, in turn, contains structs and interfaces for
    representing and iterating over a set of series which has its labels
    and chunks loaded.

Signed-off-by: Dimitar Dimitrov dimitar.dimitrov@grafana.com
Co-authored-by: Marco Pracucci marco@pracucci.com

This is the first PR in which we are introducing code related to the
streaming implementation of the store-gateway.

This PR introduces two prod files and two test files.

- `series_refs.go` contains structs and interfaces for holding and
iterating over a set of series which still doesn't have chunks yet.
It only contains refs to chunks and labels.

- `series_chunks.go`, in turn, contains structs and interfaces for
representing and iterating over a set of series which has its labels
_and_ chunks loaded.

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Co-authored-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
@dimitarvdimitrov dimitarvdimitrov requested a review from a team as a code owner November 30, 2022 10:56
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/storegateway/series_chunks.go Outdated Show resolved Hide resolved
Co-authored-by: Marco Pracucci <marco@pracucci.com>
@pracucci
Copy link
Collaborator

We're merging it. If you have any post-merge comments, we'll promptly address them.

@pracucci pracucci merged commit e79620b into main Nov 30, 2022
@pracucci pracucci deleted the dimitar/streaming-series-chunks-n-refs-structs branch November 30, 2022 17:38
masonmei pushed a commit to udmire/mimir that referenced this pull request Dec 16, 2022
grafana#3587)

* Streaming store-gateway: add structs and interfaces for sets of series

This is the first PR in which we are introducing code related to the
streaming implementation of the store-gateway.

This PR introduces two prod files and two test files.

- `series_refs.go` contains structs and interfaces for holding and
iterating over a set of series which still doesn't have chunks yet.
It only contains refs to chunks and labels.

- `series_chunks.go`, in turn, contains structs and interfaces for
representing and iterating over a set of series which has its labels
_and_ chunks loaded.

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Co-authored-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>

* Update pkg/storegateway/series_chunks.go

Co-authored-by: Marco Pracucci <marco@pracucci.com>

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Co-authored-by: Marco Pracucci <marco@pracucci.com>
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.

2 participants