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

Side by Side Diff: common/gcloud/pubsub/quota.go

Issue 1863973002: LogDog: Update to archival V2. (Closed) Base URL: https://github.com/luci/luci-go@grpcutil-errors
Patch Set: Fix proto comment. Created 4 years, 8 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 | « common/gcloud/gs/path.go ('k') | common/logdog/coordinator/query_test.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package pubsub 5 package pubsub
6 6
7 import ( 7 import (
8 "time"
9
8 "google.golang.org/cloud/pubsub" 10 "google.golang.org/cloud/pubsub"
9 ) 11 )
10 12
11 // Cloud PubSub quota is documented here: 13 // Cloud PubSub quota is documented here:
12 // https://cloud.google.com/pubsub/quotas 14 // https://cloud.google.com/pubsub/quotas
13 const ( 15 const (
14 // MaxPublishSize is the maximum size, in bytes, of the published messag e 16 // MaxPublishSize is the maximum size, in bytes, of the published messag e
15 // (10 MB). 17 // (10 MB).
16 // 18 //
17 // See: https://cloud.google.com/pubsub/publisher 19 // See: https://cloud.google.com/pubsub/publisher
18 MaxPublishSize = 10 * 1024 * 1024 20 MaxPublishSize = 10 * 1024 * 1024
19 21
20 // MaxPublishBatchSize is the maximum PubSub batch size. 22 // MaxPublishBatchSize is the maximum PubSub batch size.
21 MaxPublishBatchSize = pubsub.MaxPublishBatchSize 23 MaxPublishBatchSize = pubsub.MaxPublishBatchSize
22 24
23 // MaxProjectMessagesPerSecond is the maximum number of requests per sec ond, 25 // MaxProjectMessagesPerSecond is the maximum number of requests per sec ond,
24 // across the entire project. 26 // across the entire project.
25 MaxProjectMessagesPerSecond = 10000 27 MaxProjectMessagesPerSecond = 10000
26 28
27 // MaxSubscriptionPullSize is the maximum number of subscription records that 29 // MaxSubscriptionPullSize is the maximum number of subscription records that
28 // can be pulled at a time. 30 // can be pulled at a time.
29 MaxSubscriptionPullSize = pubsub.DefaultMaxPrefetch 31 MaxSubscriptionPullSize = pubsub.DefaultMaxPrefetch
32
33 // MaxACKDeadline is the maximum acknowledgement deadline that can be ap plied
34 // to a leased subscription Message.
35 MaxACKDeadline = 600 * time.Second
30 ) 36 )
OLDNEW
« no previous file with comments | « common/gcloud/gs/path.go ('k') | common/logdog/coordinator/query_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698