Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Consider merging this with Thanos shipper package. #7

Open
bwplotka opened this issue Oct 21, 2019 · 4 comments
Open

Consider merging this with Thanos shipper package. #7

bwplotka opened this issue Oct 21, 2019 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@bwplotka
Copy link
Member

bwplotka commented Oct 21, 2019

Something we missed in the design phase is that this repo is really functionally similar to shipper package used by Thanos. In fact, the shipper would use some fresh improvements we did here (e.g to fix thanos-io/thanos#1670), On top of this, on blockbench repo we agreed to have separate sync CLI command that will do block shipping from the filesystem (see this discussion). Again really similar functionality as Thanos replicate.

Looks like all of this would be nice to be a generalized package for shipping/replicating blocks between two places, am I missing something? 🤔 I am not sure if we should attack this now if we agree on this, but I would propose:

  • Adding replicate improvements (replication ID, upload ordering, tests) to the shipper. Happy to rename it replicator
  • Adding sync CLI command that will use shipper/replicator
  • Allow --daemon and --single-run option.

Sorry for spotting this so late. cc @brancz WDYT?

@brancz
Copy link
Contributor

brancz commented Oct 22, 2019

Leaving the component named “sidecar” seems weird but other than that this sounds good to me!

@cdickmann
Copy link

I also have a use case where I want to instruct Prometheus to create a snapshot and then take that snapshot (i.e. its blocks) and ship them to S3. I have abused thanos sidecar, such that I start the daemon, watch the thanos.shipper.json to see when all blocks are referenced in the uploaded array, and then kill the daemon again.

So having a mode for sidecar, or a thanos replicate command which does a single run (without running store API) would be awesome. Personally I would love it if I could say --replicate-snapshot where Thanos calls Prometheus to create a snapshot, and then upload that snapshot. But obviously that can be scripted easily once thanos replicate is available.

bwplotka added a commit that referenced this issue Oct 28, 2019
Related: #7

* Changed important log lines to Info
* Added check if ext lset are set for Thanos.
* Added single-run option.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
bwplotka added a commit that referenced this issue Oct 28, 2019
Related: #7

* Changed important log lines to Info
* Added check if ext lset are set for Thanos.
* Added single-run option.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
bwplotka added a commit that referenced this issue Oct 28, 2019
Related: #7

* Changed important log lines to Info
* Added check if ext lset are set for Thanos.
* Added single-run option.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
bwplotka added a commit to thanos-io/thanos that referenced this issue Oct 28, 2019
Usa cases:
* See: observatorium/thanos-replicate#7
* Local testing, demos

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
bwplotka added a commit to thanos-io/thanos that referenced this issue Oct 29, 2019
* Added experimental filesystem bucket implementation

Usa cases:
* See: observatorium/thanos-replicate#7
* Local testing, demos

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>

* Fixed edge case.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>

* Disabled one test case. We cannot rely on this.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
@bwplotka
Copy link
Member Author

bwplotka commented Oct 29, 2019

We have now sync from local disk: #21

Leftover work (help wanted):

@bwplotka bwplotka added the help wanted Extra attention is needed label Oct 29, 2019
@bwplotka
Copy link
Member Author

Kind of happening thanos-io/thanos#2113

brancz pushed a commit to brancz/objstore that referenced this issue Jan 28, 2022
* Added experimental filesystem bucket implementation

Usa cases:
* See: observatorium/thanos-replicate#7
* Local testing, demos

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>

* Fixed edge case.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>

* Disabled one test case. We cannot rely on this.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants