| OLD | NEW |
| 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 23 matching lines...) Expand all Loading... |
| 34 // The name of the authentication group for administrators. | 34 // The name of the authentication group for administrators. |
| 35 string admin_auth_group = 10; | 35 string admin_auth_group = 10; |
| 36 // The name of the authentication group for backend services. | 36 // The name of the authentication group for backend services. |
| 37 string service_auth_group = 11; | 37 string service_auth_group = 11; |
| 38 | 38 |
| 39 // A list of origin URLs that are allowed to perform CORS RPC calls. | 39 // A list of origin URLs that are allowed to perform CORS RPC calls. |
| 40 repeated string rpc_allow_origins = 20; | 40 repeated string rpc_allow_origins = 20; |
| 41 | 41 |
| 42 // The name of the archive task queue. | 42 // The name of the archive task queue. |
| 43 string archive_task_queue = 30; | 43 string archive_task_queue = 30; |
| 44 // The amount of time after a log has been terminated before it is candidate | 44 |
| 45 // The grace period after a log has been terminated and before it is candidate |
| 45 // for archival. | 46 // for archival. |
| 46 // | 47 // |
| 47 // Archival triggered by this delay will NOT succeed if any log entries are | 48 // This grace period is purely an optimization, providing time for |
| 48 // missing from intermediate storage. | 49 // out-of-order logs to settle and be ingested into intermediate storage and |
| 49 // | 50 // avoiding wasted Archivist cycles. |
| 50 // This should be based on a period of time where it's reasonable to expect | 51 google.protobuf.Duration archive_settle_delay = 31; |
| 51 // that all log messages in the transport have arrived for a given log stream. | 52 |
| 52 // Since the transport doesn't have to guarantee in-order delivery, this | |
| 53 // should allow for the case where the terminal log entry arrives before some | |
| 54 // of the intermediate log entries. This will help avoid triggering | |
| 55 // archive attempts that are doomed to fail because of standard transport lag. | |
| 56 google.protobuf.Duration archive_delay = 31; | |
| 57 // The amount of time before a log stream is candidate for archival regardless | 53 // The amount of time before a log stream is candidate for archival regardless |
| 58 // of whether or not it's been terminated or complete. | 54 // of whether or not it's been terminated or complete. |
| 59 // | 55 // |
| 60 // This endpoint is a failsafe designed to ensure that log streams with | 56 // This is a failsafe designed to ensure that log streams with missing records |
| 61 // missing records or no terminal record (e.g., Butler crashed) are eventually | 57 // or no terminal record (e.g., Butler crashed) are eventually archived. |
| 62 // moved out of intermediate storage. | |
| 63 // | 58 // |
| 64 // This must be >= `archive_delay`, and should be fairly large (days) to allow | 59 // This should be fairly large (days) to avoid prematurely archiving |
| 65 // for the log stream to complete and for all available log entries to be | 60 // long-running streams, but should be considerably smaller than the |
| 66 // added to intermediate storage. | 61 // intermediate storage data retention period. |
| 67 google.protobuf.Duration archive_delay_max = 32; | 62 google.protobuf.Duration archive_delay_max = 32; |
| 63 |
| 64 // The maximum number of times to retry a failed stream archival before giving |
| 65 // up and clearing the stream. |
| 66 // |
| 67 // This only affects fatal archival failures (e.g., data corruption), not |
| 68 // partial log stream content or transient failures. |
| 69 int32 archive_retries = 33; |
| 68 } | 70 } |
| 69 | 71 |
| 70 // Collector is the set of configuration parameters for Collector instances. | 72 // Collector is the set of configuration parameters for Collector instances. |
| 71 message Collector { | 73 message Collector { |
| 72 // The maximum number of concurrent transport messages to process. If <= 0, | 74 // The maximum number of concurrent transport messages to process. If <= 0, |
| 73 // a default will be chosen based on the transport. | 75 // a default will be chosen based on the transport. |
| 74 int32 max_concurrent_messages = 1; | 76 int32 max_concurrent_messages = 1; |
| 75 | 77 |
| 76 // The maximum number of concurrent workers to process each ingested message. | 78 // The maximum number of concurrent workers to process each ingested message. |
| 77 // If <= 0, collector.DefaultMaxMessageWorkers will be used. | 79 // If <= 0, collector.DefaultMaxMessageWorkers will be used. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 98 // The bucket name must be included (e.g., "gs://foo"). The remainder of the | 100 // The bucket name must be included (e.g., "gs://foo"). The remainder of the |
| 99 // base path is optional based on desired archive location. | 101 // base path is optional based on desired archive location. |
| 100 string gs_base = 10; | 102 string gs_base = 10; |
| 101 // If not zero, the maximum number of stream indices between index entries. | 103 // If not zero, the maximum number of stream indices between index entries. |
| 102 int32 stream_index_range = 11; | 104 int32 stream_index_range = 11; |
| 103 // If not zero, the maximum number of prefix indices between index entries. | 105 // If not zero, the maximum number of prefix indices between index entries. |
| 104 int32 prefix_index_range = 12; | 106 int32 prefix_index_range = 12; |
| 105 // If not zero, the maximum number of log data bytes between index entries. | 107 // If not zero, the maximum number of log data bytes between index entries. |
| 106 int32 byte_range = 13; | 108 int32 byte_range = 13; |
| 107 } | 109 } |
| OLD | NEW |