|
|
LogDog: BigTable batching schema.
Update the Storage schema to enable batching Put() calls. Update
BigTable schema to store batches of sequential logs in a single cell
instead of requiring one cell per log.
Previously, BigTable schema keyed each cell row off of a log's index.
Now, the cell row is keyed based on the LAST index in a block of
sequential log entries, storing entries as a series of recordio blocks.
This change allows multiple log entries to be stored in a single
BigTable cell.
Before: 0|1|2|3|4|5
Now: 0 1 2 3|4 5
Before, "get message 2" meant "go to row #2, get data." Now, it is "go
to row >= 2 (in this example, 3) and pull 2 out of the block.
Update APIs accordingly.
Also update Subscriber API to control message quantity rather than
batch pull count for better tuning and parity with upstream Pub/Sub
API changes.
BUG= chromium:597886
TEST=local
Committed: https://github.com/luci/luci-go/commit/63c19cda88aa254fd537edc802bf5c19cc8f009f
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+672 lines, -514 lines) |
Patch |
 |
M |
appengine/logdog/coordinator/config/bigTable.go
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/get.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
appengine/logdog/coordinator/endpoints/logs/get_test.go
|
View
|
1
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
common/gcloud/pubsub/subscriber/source.go
|
View
|
|
1 chunk |
+10 lines, -17 lines |
0 comments
|
Download
|
 |
M |
common/gcloud/pubsub/subscriber/subscriber.go
|
View
|
|
3 chunks |
+43 lines, -60 lines |
0 comments
|
Download
|
 |
M |
common/gcloud/pubsub/subscriber/subscriber_test.go
|
View
|
1
|
4 chunks |
+35 lines, -14 lines |
0 comments
|
Download
|
 |
M |
common/proto/logdog/logpb/butler.proto
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
common/proto/logdog/logpb/butler.pb.go
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
common/proto/logdog/svcconfig/config.proto
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
common/proto/logdog/svcconfig/config.pb.go
|
View
|
1
|
2 chunks |
+36 lines, -33 lines |
0 comments
|
Download
|
 |
M |
server/cmd/logdog_collector/main.go
|
View
|
|
3 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/archivist/archivist.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
server/internal/logdog/archivist/archivist_test.go
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/collector/collector.go
|
View
|
|
9 chunks |
+112 lines, -114 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/collector/collector_test.go
|
View
|
|
8 chunks |
+19 lines, -42 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/collector/utils_test.go
|
View
|
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
server/internal/logdog/service/service.go
|
View
|
|
6 chunks |
+25 lines, -2 lines |
0 comments
|
Download
|
 |
M |
server/logdog/storage/archive/storage.go
|
View
|
|
4 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
server/logdog/storage/bigtable/bigtable.go
|
View
|
|
6 chunks |
+14 lines, -32 lines |
0 comments
|
Download
|
 |
M |
server/logdog/storage/bigtable/initialize.go
|
View
|
|
4 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
server/logdog/storage/bigtable/storage.go
|
View
|
1
|
6 chunks |
+191 lines, -64 lines |
0 comments
|
Download
|
 |
M |
server/logdog/storage/bigtable/storage_test.go
|
View
|
1
|
6 chunks |
+79 lines, -36 lines |
0 comments
|
Download
|
 |
M |
server/logdog/storage/memory/memory.go
|
View
|
|
1 chunk |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
server/logdog/storage/memory/memory_test.go
|
View
|
|
9 chunks |
+30 lines, -27 lines |
0 comments
|
Download
|
 |
M |
server/logdog/storage/storage.go
|
View
|
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
Depends on Patchset:
Total messages: 12 (5 generated)
|