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

Unified Diff: appengine/logdog/coordinator/backend/doc.go

Issue 1910633006: LogDog: Support per-namespace expired archival. (Closed) Base URL: https://github.com/luci/luci-go@logdog-coordinator-svcdec
Patch Set: Update another test. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/logdog/coordinator/backend/backend.go ('k') | appengine/logdog/coordinator/backend/util.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/logdog/coordinator/backend/doc.go
diff --git a/appengine/logdog/coordinator/backend/doc.go b/appengine/logdog/coordinator/backend/doc.go
deleted file mode 100644
index b63c0457e8f53d9cbacb6f4c2a148d35519fa3b9..0000000000000000000000000000000000000000
--- a/appengine/logdog/coordinator/backend/doc.go
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Package backend implements the set of backend handlers used by the LogDog
-// Coordiantor. This consists of both cron handlers and work handlers. The
-// cron handlers will dispatch task queue tasks that will be serviced by the
-// work handlers.
-//
-// The backend interfaces between the two log storage spaces that LogDog uses:
-// - Intermediate storage: Logs are accumulated here from the Transport by the
-// Collector. They reside here until they are either complete or they
-// timeout, at which point they are moved (via archival) to the archive
-// storage.
-// - Archive storage: Logs are moved from intermediate storage to archive
-// storage upon completion. An index and associated data is generated for the
-// stream and it is considered finalized and immutable. This should be a
-// cheaper storage location, possibly with cold storage capabilities.
-//
-// Archival
-//
-// Archival begins with a periodic cron job that scans through LogStream
-// datastore entries looking for streams that have not yet been archived. A
-// given stream will have archival initiated if:
-// - It has been closed for the configured `archive_delay` period.
-// - It has not been archived for at least `archive_max_delay`.
-//
-// In the first case, we scan for logs that have been terminated and dispatch
-// archival tasks requesting complete archival. This is the standard case,
-// and will identify log streams that have had their terminal indexes
-// registered.
-//
-// The second case is the failsafe case. If a log stream has been inactive for
-// sufficiently long enough without actually being terminal, we preempt it and
-// assume that something weng wrong in transit, dropping the terminal log entry.
-//
-// The archive cron job will dispatch an archive request to the archive backend
-// handler for each log stream that matches one of these situations.
-//
-// Each archival task will look at the last time the LogStream has been updated.
-// If this does not exceed our `archive_max_delay` (standard case), we will only
-// complete archival if every LogEntry between [0..terminalIndex] is
-// successfully archived. If we are past `archive_max_delay` (failsafe), we will
-// do a best-effort sparse archival with whatever data is available.
-package backend
« no previous file with comments | « appengine/logdog/coordinator/backend/backend.go ('k') | appengine/logdog/coordinator/backend/util.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698