| Index: common/proto/logdog/svcconfig/config.pb.go
|
| diff --git a/common/proto/logdog/svcconfig/config.pb.go b/common/proto/logdog/svcconfig/config.pb.go
|
| index 16b151b39dc06ee93935cffb0cfcb7d9987c441d..0476056016c86cfe410b3bf14ba79977d41fc4cd 100644
|
| --- a/common/proto/logdog/svcconfig/config.pb.go
|
| +++ b/common/proto/logdog/svcconfig/config.pb.go
|
| @@ -99,31 +99,30 @@ type Coordinator struct {
|
| ServiceAuthGroup string `protobuf:"bytes,11,opt,name=service_auth_group,json=serviceAuthGroup" json:"service_auth_group,omitempty"`
|
| // A list of origin URLs that are allowed to perform CORS RPC calls.
|
| RpcAllowOrigins []string `protobuf:"bytes,20,rep,name=rpc_allow_origins,json=rpcAllowOrigins" json:"rpc_allow_origins,omitempty"`
|
| - // The name of the archive task queue.
|
| - ArchiveTaskQueue string `protobuf:"bytes,30,opt,name=archive_task_queue,json=archiveTaskQueue" json:"archive_task_queue,omitempty"`
|
| - // The amount of time after a log has been terminated before it is candidate
|
| - // for archival.
|
| + // The full path of the archival Pub/Sub topic.
|
| //
|
| - // Archival triggered by this delay will NOT succeed if any log entries are
|
| - // missing from intermediate storage.
|
| + // The Coordinator must have permission to publish to this topic.
|
| + ArchiveTopic string `protobuf:"bytes,30,opt,name=archive_topic,json=archiveTopic" json:"archive_topic,omitempty"`
|
| + // The amount of time after an archive request has been dispatched before it
|
| + // should be executed.
|
| //
|
| - // This should be based on a period of time where it's reasonable to expect
|
| - // that all log messages in the transport have arrived for a given log stream.
|
| - // Since the transport doesn't have to guarantee in-order delivery, this
|
| - // should allow for the case where the terminal log entry arrives before some
|
| - // of the intermediate log entries. This will help avoid triggering
|
| - // archive attempts that are doomed to fail because of standard transport lag.
|
| - ArchiveDelay *google_protobuf.Duration `protobuf:"bytes,31,opt,name=archive_delay,json=archiveDelay" json:"archive_delay,omitempty"`
|
| + // Since terminal messages can arrive out of order, the archival request may
|
| + // be kicked off before all of the log stream data has been loaded into
|
| + // intermediate storage. If this happens, the Archivist will retry archival
|
| + // later autometically.
|
| + //
|
| + // This parameter is an optimization to stop the archivist from wasting its
|
| + // time until the log stream has a reasonable expectation of being available.
|
| + ArchiveSettleDelay *google_protobuf.Duration `protobuf:"bytes,31,opt,name=archive_settle_delay,json=archiveSettleDelay" json:"archive_settle_delay,omitempty"`
|
| // The amount of time before a log stream is candidate for archival regardless
|
| // of whether or not it's been terminated or complete.
|
| //
|
| - // This endpoint is a failsafe designed to ensure that log streams with
|
| - // missing records or no terminal record (e.g., Butler crashed) are eventually
|
| - // moved out of intermediate storage.
|
| + // This is a failsafe designed to ensure that log streams with missing records
|
| + // or no terminal record (e.g., Butler crashed) are eventually archived.
|
| //
|
| - // This must be >= `archive_delay`, and should be fairly large (days) to allow
|
| - // for the log stream to complete and for all available log entries to be
|
| - // added to intermediate storage.
|
| + // This should be fairly large (days) to avoid prematurely archiving
|
| + // long-running streams, but should be considerably smaller than the
|
| + // intermediate storage data retention period.
|
| ArchiveDelayMax *google_protobuf.Duration `protobuf:"bytes,32,opt,name=archive_delay_max,json=archiveDelayMax" json:"archive_delay_max,omitempty"`
|
| }
|
|
|
| @@ -132,9 +131,9 @@ func (m *Coordinator) String() string { return proto.CompactTextStrin
|
| func (*Coordinator) ProtoMessage() {}
|
| func (*Coordinator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
| -func (m *Coordinator) GetArchiveDelay() *google_protobuf.Duration {
|
| +func (m *Coordinator) GetArchiveSettleDelay() *google_protobuf.Duration {
|
| if m != nil {
|
| - return m.ArchiveDelay
|
| + return m.ArchiveSettleDelay
|
| }
|
| return nil
|
| }
|
| @@ -176,21 +175,28 @@ func (m *Collector) GetStateCacheExpiration() *google_protobuf.Duration {
|
|
|
| // Configuration for the Archivist microservice.
|
| type Archivist struct {
|
| + // The name of the archival Pub/Sub subscription.
|
| + //
|
| + // This should be connected to "archive_topic", and the Archivist must have
|
| + // permission to consume from this subscription.
|
| + Subscription string `protobuf:"bytes,1,opt,name=subscription" json:"subscription,omitempty"`
|
| // The number of tasks to run at a time. If blank, the archivist will choose a
|
| // default value.
|
| - Tasks int32 `protobuf:"varint,1,opt,name=tasks" json:"tasks,omitempty"`
|
| + Tasks int32 `protobuf:"varint,2,opt,name=tasks" json:"tasks,omitempty"`
|
| // The name of the Google Storage bucket and optional base path to archive
|
| // into. For example: gs://foo/bar
|
| //
|
| // The bucket name must be included (e.g., "gs://foo"). The remainder of the
|
| // base path is optional based on desired archive location.
|
| - GsBase string `protobuf:"bytes,10,opt,name=gs_base,json=gsBase" json:"gs_base,omitempty"`
|
| + GsBase string `protobuf:"bytes,3,opt,name=gs_base,json=gsBase" json:"gs_base,omitempty"`
|
| + // The name of the staging storage bucket. Uses same notation as "gs_base".
|
| + GsStagingBase string `protobuf:"bytes,4,opt,name=gs_staging_base,json=gsStagingBase" json:"gs_staging_base,omitempty"`
|
| // If not zero, the maximum number of stream indices between index entries.
|
| - StreamIndexRange int32 `protobuf:"varint,11,opt,name=stream_index_range,json=streamIndexRange" json:"stream_index_range,omitempty"`
|
| + StreamIndexRange int32 `protobuf:"varint,10,opt,name=stream_index_range,json=streamIndexRange" json:"stream_index_range,omitempty"`
|
| // If not zero, the maximum number of prefix indices between index entries.
|
| - PrefixIndexRange int32 `protobuf:"varint,12,opt,name=prefix_index_range,json=prefixIndexRange" json:"prefix_index_range,omitempty"`
|
| + PrefixIndexRange int32 `protobuf:"varint,11,opt,name=prefix_index_range,json=prefixIndexRange" json:"prefix_index_range,omitempty"`
|
| // If not zero, the maximum number of log data bytes between index entries.
|
| - ByteRange int32 `protobuf:"varint,13,opt,name=byte_range,json=byteRange" json:"byte_range,omitempty"`
|
| + ByteRange int32 `protobuf:"varint,12,opt,name=byte_range,json=byteRange" json:"byte_range,omitempty"`
|
| }
|
|
|
| func (m *Archivist) Reset() { *m = Archivist{} }
|
| @@ -206,42 +212,44 @@ func init() {
|
| }
|
|
|
| var fileDescriptor0 = []byte{
|
| - // 579 bytes of a gzipped FileDescriptorPro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d6, 0x7f, 0x9e, 0xff, 0xd7, 0x76, 0xf5, 0xf2,
|
| - 0x58, 0xe7, 0xab, 0x31, 0x22, 0xa3, 0x1b, 0x3a, 0x17, 0x74, 0xc1, 0x36, 0x8f, 0xe8, 0xae, 0xa3,
|
| - 0x9d, 0xd3, 0xa0, 0x5f, 0x03, 0x30, 0x7b, 0xd0, 0x8d, 0x3a, 0xaa, 0x67, 0xa9, 0xc0, 0x28, 0xd6,
|
| - 0x9e, 0xb5, 0x6c, 0x83, 0xef, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x08, 0xf6, 0x0f, 0x5c, 0x7c,
|
| - 0x04, 0x00, 0x00,
|
| + // 619 bytes of a gzipped FileDescriptorProto
|
| + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x93, 0x5d, 0x4b, 0x1b, 0x4f,
|
| + 0x18, 0xc5, 0x31, 0xbe, 0xb1, 0x4f, 0xa2, 0xd1, 0xf9, 0x47, 0x9d, 0xbf, 0x50, 0x2b, 0x29, 0x14,
|
| + 0x29, 0x65, 0x05, 0x0b, 0xa5, 0xb7, 0x36, 0x4a, 0x29, 0x45, 0x84, 0x8d, 0xd0, 0xcb, 0x61, 0x32,
|
| + 0x19, 0xd7, 0xa9, 0x9b, 0x9d, 0x65, 0x66, 0x12, 0x63, 0xef, 0x7a, 0xdf, 0x8f, 0xd9, 0xeb, 0x7e,
|
| + 0x86, 0xce, 0xcb, 0xbe, 0x89, 0x17, 0x5e, 0xce, 0x39, 0xbf, 0x73, 0x76, 0xf6, 0xd9, 0x67, 0xa1,
|
| + 0xc7, 0x64, 0x7e, 0x2b, 0xd2, 0xb8, 0x50, 0xd2, 0x48, 0x14, 0xe9, 0x05, 0x0b, 0xc2, 0x61, 0xdf,
|
| + 0x28, 0x9a, 0xeb, 0x42, 0x2a, 0x13, 0xbc, 0xc3, 0x2d, 0x6d, 0xa4, 0xa2, 0x29, 0x2f, 0x8f,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