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

Side by Side Diff: common/proto/logdog/svcconfig/config.proto

Issue 1838303002: Use native Pub/Sub library primitives. (Closed) Base URL: https://github.com/luci/luci-go@logdog-go1.6
Patch Set: 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
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 syntax = "proto3"; 5 syntax = "proto3";
6 6
7 package svcconfig; 7 package svcconfig;
8 8
9 import "transport.proto"; 9 import "transport.proto";
10 import "storage.proto"; 10 import "storage.proto";
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // moved out of intermediate storage. 64 // moved out of intermediate storage.
65 // 65 //
66 // This must be >= `archive_delay`, and should be fairly large (days) to allow 66 // This must be >= `archive_delay`, and should be fairly large (days) to allow
67 // for the log stream to complete and for all available log entries to be 67 // for the log stream to complete and for all available log entries to be
68 // added to intermediate storage. 68 // added to intermediate storage.
69 google.protobuf.Duration archive_delay_max = 32; 69 google.protobuf.Duration archive_delay_max = 32;
70 } 70 }
71 71
72 // Collector is the set of configuration parameters for Collector instances. 72 // Collector is the set of configuration parameters for Collector instances.
73 message Collector { 73 message Collector {
74 // Workers is the number of ingest workers to run. 74 // The number of concurrent transport messages to process.
75 int32 workers = 1; 75 int32 transport_concurrent_messages = 1;
76
77 // The number of transport worker goroutines to run.
78 int32 transport_workers = 2;
79 76
80 // The maximum number of log stream states to cache locally. If <= 0, a 77 // The maximum number of log stream states to cache locally. If <= 0, a
81 // default will be used. 78 // default will be used.
82 int32 state_cache_size = 3; 79 int32 state_cache_size = 2;
83 80
84 // The maximum amount of time that cached stream state is valid. If <= 0, a 81 // The maximum amount of time that cached stream state is valid. If <= 0, a
85 // default will be used. 82 // default will be used.
86 google.protobuf.Duration state_cache_expiration = 4; 83 google.protobuf.Duration state_cache_expiration = 3;
87 } 84 }
88 85
89 // Configuration for the Archivist microservice. 86 // Configuration for the Archivist microservice.
90 message Archivist { 87 message Archivist {
91 // The number of tasks to run at a time. If blank, the archivist will choose a 88 // The number of tasks to run at a time. If blank, the archivist will choose a
92 // default value. 89 // default value.
93 int32 tasks = 1; 90 int32 tasks = 1;
94 91
95 // The name of the Google Storage bucket and optional base path to archive 92 // The name of the Google Storage bucket and optional base path to archive
96 // into. For example: gs://foo/bar 93 // into. For example: gs://foo/bar
97 // 94 //
98 // The bucket name must be included (e.g., "gs://foo"). The remainder of the 95 // The bucket name must be included (e.g., "gs://foo"). The remainder of the
99 // base path is optional based on desired archive location. 96 // base path is optional based on desired archive location.
100 string gs_base = 10; 97 string gs_base = 10;
101 // If not zero, the maximum number of stream indices between index entries. 98 // If not zero, the maximum number of stream indices between index entries.
102 int32 stream_index_range = 11; 99 int32 stream_index_range = 11;
103 // If not zero, the maximum number of prefix indices between index entries. 100 // If not zero, the maximum number of prefix indices between index entries.
104 int32 prefix_index_range = 12; 101 int32 prefix_index_range = 12;
105 // If not zero, the maximum number of log data bytes between index entries. 102 // If not zero, the maximum number of log data bytes between index entries.
106 int32 byte_range = 13; 103 int32 byte_range = 13;
107 } 104 }
108 105
109 // Configuration for the Janitor microservice. 106 // Configuration for the Janitor microservice.
110 message Janitor { 107 message Janitor {
111 // The number of tasks to run at a time. If blank, the janitor will choose a 108 // The number of tasks to run at a time. If blank, the janitor will choose a
112 // default value. 109 // default value.
113 int32 tasks = 1; 110 int32 tasks = 1;
114 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698