|
|
[logdog] Replace Tumble with push queues.
Replace Tumble with push queues for archival.
Currently, LogDog uses the Tumble journaling state machine to manage its
archival. Tumble is generally overkill for this one-state task, but was
chosen because it seemed, at the time, likely that it would be used
everywhere in LUCI.
Almost two years later, LogDog is the only production major user of
Tumble. Since it barely scrapes the power of Tumble, and since Tumble
itself is rather opaque in its operations, this trade-off is not
worthwhile. Instead, we replace Tumble with task queues.
When a log stream is registered, an "expired" task will be enqueued to
handle it once the stream expires (if it never gets terminated). When
the stream is terminated, the expiration task is deleted, replaced with
a shorter-term archival task.
We leave Tumble and its mutation handling in-place because, in
production, there is still a Tumble backlog to process through. This
should be empited within a few days, and we can finish the removal.
BUG= chromium:751925
TEST=unit
Review-Url: https://codereview.chromium.org/2989333002
Committed: https://github.com/luci/luci-go/commit/18ae6bdbc6652e10610d55e4528d4bb3c624f813
Total comments: 3
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1314 lines, -769 lines) |
Patch |
 |
A |
common/gcloud/pubsub/publisher.go
|
View
|
1
2
3
4
|
1 chunk |
+80 lines, -0 lines |
0 comments
|
Download
|
 |
M |
common/gcloud/pubsub/topic.go
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
M |
logdog/api/endpoints/coordinator/services/v1/pb.discovery.go
|
View
|
1
2
3
4
5
6
|
1 chunk |
+612 lines, -588 lines |
0 comments
|
Download
|
 |
M |
logdog/api/endpoints/coordinator/services/v1/service.pb.go
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/api/endpoints/coordinator/services/v1/tasks.proto
|
View
|
1
2
3
4
5
6
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/api/endpoints/coordinator/services/v1/tasks.pb.go
|
View
|
1
2
3
4
5
6
|
4 chunks |
+104 lines, -21 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/cmd/coordinator/backend/main.go
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/cmd/coordinator/backend/module-backend.yaml
|
View
|
1
2
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
logdog/appengine/cmd/coordinator/services/main.go
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/cmd/coordinator/services/module-services.yaml
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/cmd/coordinator/vmuser/app.yaml
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/cmd/coordinator/vmuser/queue.yaml
|
View
|
1
2
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/coordinator/archivalPublisher.go
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -11 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/coordinator/coordinatorTest/context.go
|
View
|
1
|
5 chunks |
+27 lines, -28 lines |
0 comments
|
Download
|
 |
A |
logdog/appengine/coordinator/coordinatorTest/taskqueue.go
|
View
|
|
1 chunk |
+82 lines, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/coordinator/endpoints/services/registerStream.go
|
View
|
1
|
5 chunks |
+42 lines, -37 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/coordinator/endpoints/services/registerStream_test.go
|
View
|
|
7 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/coordinator/endpoints/services/terminateStream.go
|
View
|
1
2
3
4
5
|
3 chunks |
+25 lines, -17 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/coordinator/endpoints/services/terminateStream_test.go
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
logdog/appengine/coordinator/service.go
|
View
|
1
2
3
4
|
4 chunks |
+24 lines, -38 lines |
0 comments
|
Download
|
 |
A |
logdog/appengine/coordinator/tasks/archival.go
|
View
|
1
2
3
4
5
6
|
1 chunk |
+201 lines, -0 lines |
0 comments
|
Download
|
 |
A |
logdog/appengine/coordinator/tasks/routes.go
|
View
|
1
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
M |
logdog/client/butler/output/logdog/output.go
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 23 (9 generated)
|