REPLICATOR: Add TimePartitionMetaFilter to thanos replicate.#2979
REPLICATOR: Add TimePartitionMetaFilter to thanos replicate.#2979bwplotka merged 10 commits intothanos-io:masterfrom
Conversation
9f52fb1 to
cc16483
Compare
bdc6443 to
87d81a3
Compare
d57faab to
e3c36f0
Compare
bwplotka
left a comment
There was a problem hiding this comment.
Nice, just comments around deletion not being part of replicator
|
Im waiting on the depended MR to get merged to continue on this one. As the dependent MR will most likely introduce more merging conflicts. |
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
|
@OGKevin In the meanwhile, could you maybe rebase and also sign DCO? |
This will allow time based replication. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
e3c36f0 to
a4d95b8
Compare
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
2d98401 to
e5297d7
Compare
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
e5297d7 to
c18d069
Compare
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
|
@bwplotka its ready for 👀! |
| fromBkt, | ||
| "", | ||
| reg, | ||
| []thanosblock.MetadataFilter{thanosblock.NewTimePartitionMetaFilter(*minTime, *maxTime)}, |
There was a problem hiding this comment.
Can we add this only if minTime and maxTime are passed? (:
There was a problem hiding this comment.
Wouldn't the behaviour be the same? As the max and min are almost infinite. What is the reason for only passing it if its set to non default value?
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
bwplotka
left a comment
There was a problem hiding this comment.
Amazing! Looks good to me 👍
Thanks!
…io#2979) * Add TimePartitionMetaFilter to thanos replicate. This will allow time based replication. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Update docs and changelog. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix lint Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Add posibility to delete blocks older than max time Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix metric naming. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix order of arguments for max and min time. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Remove deletion of blocks from replicator. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix import formatting Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Revert unneeded changes due to replicator no longer deleting blocs Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix typo Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> Signed-off-by: Oghenebrume50 <raphlbrume@gmail.com>
This will allow time based replication.
Its blocked by #2906
Changes
Verification