Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: logdog/server/collector/collector.go

Issue 2575383002: Add server/cache support to gaeconfig. (Closed)
Patch Set: Un-collapse. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « logdog/server/archivist/storageSource.go ('k') | logdog/server/collector/coordinator/cache.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package collector 5 package collector
6 6
7 import ( 7 import (
8 "bytes" 8 "bytes"
9 "time" 9 "time"
10 10
11 "github.com/golang/protobuf/proto"
12 "github.com/luci/luci-go/common/clock" 11 "github.com/luci/luci-go/common/clock"
13 "github.com/luci/luci-go/common/errors" 12 "github.com/luci/luci-go/common/errors"
14 log "github.com/luci/luci-go/common/logging" 13 log "github.com/luci/luci-go/common/logging"
15 "github.com/luci/luci-go/common/sync/parallel" 14 "github.com/luci/luci-go/common/sync/parallel"
16 "github.com/luci/luci-go/common/tsmon/distribution" 15 "github.com/luci/luci-go/common/tsmon/distribution"
17 "github.com/luci/luci-go/common/tsmon/field" 16 "github.com/luci/luci-go/common/tsmon/field"
18 "github.com/luci/luci-go/common/tsmon/metric" 17 "github.com/luci/luci-go/common/tsmon/metric"
19 tsmon_types "github.com/luci/luci-go/common/tsmon/types" 18 tsmon_types "github.com/luci/luci-go/common/tsmon/types"
20 "github.com/luci/luci-go/logdog/api/logpb" 19 "github.com/luci/luci-go/logdog/api/logpb"
21 "github.com/luci/luci-go/logdog/client/butlerproto" 20 "github.com/luci/luci-go/logdog/client/butlerproto"
22 "github.com/luci/luci-go/logdog/common/storage" 21 "github.com/luci/luci-go/logdog/common/storage"
23 "github.com/luci/luci-go/logdog/common/types" 22 "github.com/luci/luci-go/logdog/common/types"
24 "github.com/luci/luci-go/logdog/server/collector/coordinator" 23 "github.com/luci/luci-go/logdog/server/collector/coordinator"
25 "github.com/luci/luci-go/luci_config/common/cfgtypes" 24 "github.com/luci/luci-go/luci_config/common/cfgtypes"
25
26 "github.com/golang/protobuf/proto"
26 "golang.org/x/net/context" 27 "golang.org/x/net/context"
27 ) 28 )
28 29
29 const ( 30 const (
30 // DefaultMaxMessageWorkers is the default number of concurrent worker 31 // DefaultMaxMessageWorkers is the default number of concurrent worker
31 // goroutones to employ for a single message. 32 // goroutones to employ for a single message.
32 DefaultMaxMessageWorkers = 4 33 DefaultMaxMessageWorkers = 4
33 ) 34 )
34 35
35 var ( 36 var (
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 } 447 }
447 }) 448 })
448 } 449 }
449 450
450 func streamType(desc *logpb.LogStreamDescriptor) string { 451 func streamType(desc *logpb.LogStreamDescriptor) string {
451 if desc == nil { 452 if desc == nil {
452 return "UNKNOWN" 453 return "UNKNOWN"
453 } 454 }
454 return desc.StreamType.String() 455 return desc.StreamType.String()
455 } 456 }
OLDNEW
« no previous file with comments | « logdog/server/archivist/storageSource.go ('k') | logdog/server/collector/coordinator/cache.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698