-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Bloom Client #10697
Bloom Client #10697
Conversation
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
…files Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
func NewShipper(periodicConfigs []config.PeriodConfig, storageConfig storage.Config, clientMetrics storage.ClientMetrics) (*bloomShipper, error) { | ||
periodicObjectClients := make(map[config.DayTime]client.ObjectClient) | ||
for _, periodicConfig := range periodicConfigs { | ||
objectClient, err := storage.NewObjectClient(periodicConfig.ObjectType, storageConfig, clientMetrics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
must be prefixedObjectClient . see: tsdb.shared-store-key-prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently, it's not possible to use prefixedObjectClient
outside of package storage
.
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
… on top of the client Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We may need to tweak it (that's fine), but this is a good first pass.
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
…to vlad.diachenko/bloom_shipper
…ed block file name pattern to make entire object prefix more unique. Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
Implemented BloomClient that allows : 1. fetch all meta.json files that satisfy the search criteria 2. upload meta.json 3. delete meta.json 4. fetch bloom blocks in bulk 5. upload bloom blocks in bulk 6. delete bloom blocks in bulk Bloom shipper was extracted to a separate PR grafana#10806 --------- Signed-off-by: Vladyslav Diachenko <vlad.diachenko@grafana.com>
Implemented BloomClient that allows :
Bloom shipper was extracted to a separate PR #10806