-
Notifications
You must be signed in to change notification settings - Fork 491
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
tsdbrelay: denormalization backfill app #1076
Conversation
captncraig
commented
Jun 17, 2015
Review status: 0 of 8 files reviewed at latest revision, 9 unresolved discussions, all commit checks successful. cmd/tsdbrelay/denormalize/backfill/main.go, line 1 [r1] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 15 [r1] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 16 [r1] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 59 [r3] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 63 [r3] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 68 [r3] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 109 [r3] (raw file): tsdbrelay just ignores failed denormalize requests: Line 184 in 1cc2fd6
Maybe it should have some retry logic too? cmd/tsdbrelay/denormalize/backfill/main.go, line 128 [r3] (raw file): Line 49 in 1cc2fd6
Points are removed from the queue and then the send attempt is made. If it fails, then they are requeued. If we are only checking to see if the queue length is 0, then we could exit while there are points in-flight. This could cause the request to not be sent (since the entire program exits), or a failed batch to not be requeued. collect/collect.go, line 116 [r3] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 8 files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. cmd/tsdbrelay/denormalize/backfill/main.go, line 1 [r1] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 17 [r1] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 18 [r1] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 63 [r3] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 68 [r3] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 109 [r3] (raw file): cmd/tsdbrelay/denormalize/backfill/main.go, line 128 [r3] (raw file): collect/collect.go, line 116 [r3] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 8 files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. cmd/tsdbrelay/denormalize/backfill/main.go, line 17 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 9 files reviewed at latest revision, 13 unresolved discussions, all commit checks successful. cmd/backfill/main.go, line 1 [r4] (raw file): cmd/backfill/main.go, line 2 [r4] (raw file): cmd/backfill/main.go, line 21 [r4] (raw file): cmd/backfill/main.go, line 22 [r4] (raw file): cmd/backfill/main.go, line 52 [r4] (raw file): cmd/backfill/main.go, line 112 [r4] (raw file): cmd/backfill/main.go, line 139 [r4] (raw file): cmd/backfill/main.go, line 142 [r4] (raw file): collect/collect.go, line 107 [r4] (raw file): collect/collect.go, line 109 [r4] (raw file): collect/collect.go, line 120 [r4] (raw file): Comments from the review on Reviewable.io |
Review status: 0 of 9 files reviewed at latest revision, 10 unresolved discussions, all commit checks successful. cmd/backfill/main.go, line 1 [r4] (raw file): cmd/backfill/main.go, line 2 [r4] (raw file): cmd/backfill/main.go, line 21 [r4] (raw file): cmd/backfill/main.go, line 22 [r4] (raw file): cmd/backfill/main.go, line 52 [r4] (raw file): cmd/backfill/main.go, line 112 [r4] (raw file): cmd/backfill/main.go, line 139 [r4] (raw file): cmd/backfill/main.go, line 142 [r4] (raw file): collect/collect.go, line 107 [r4] (raw file): collect/queue.go, line 133 [r4] (raw file): Comments from the review on Reviewable.io |
Reviewed 5 of 6 files at r1, 3 of 3 files at r5. cmd/backfill/main.go, line 113 [r5] (raw file): cmd/backfill/main.go, line 118 [r4] (raw file): Comments from the review on Reviewable.io |
Reviewed 1 of 1 files at r6, 1 of 1 files at r7. collect/queue.go, line 117 [r7] (raw file): Comments from the review on Reviewable.io |
LGTM with the caveat I posted below. Review status: all files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. Comments from the review on Reviewable.io |
f1a0af0
to
d5c62a8
Compare
@mjibson I'm gonna merge as is. Most of the changes to collect were to change queue to carry datapoints instead of raw messages. This seems cosmetic now, but will be necessary in the future if scollector is to target more backends. |
tsdbrelay: denormalization backfill app
Agreed. Will be useful for multiply back ends. On Mon, Jun 22, 2015, 11:44 AM Craig Peterson notifications@github.com
|