package cleanup
- Source
- package.scala
- Alphabetic
- By Inheritance
- cleanup
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type CleanupRow = (Datacenter, Namespace, DeploymentCtx, RoutingGraph)
- final case class DeploymentCtx(deployment: Deployment, status: DeploymentStatus, exp: Option[Instant]) extends Product with Serializable
- sealed trait ExpirationPolicy extends AnyRef
Value Members
- object CleanupCron
- object ExpirationPolicy
- object ExpirationPolicyProcess
-
object
GarbageCollector
The GarbageCollector is a process that periodically traverses the CleanupGraph and marks deployments as
garbage
.The GarbageCollector is a process that periodically traverses the CleanupGraph and marks deployments as
garbage
. Any deployment that is marked asgarbage
becomes a candidate for cleanup. - object Reaper
- object RetainActive extends ExpirationPolicy
- object RetainLatest extends ExpirationPolicy
- object RetainLatestTwoFeature extends ExpirationPolicy
- object RetainLatestTwoMajor extends ExpirationPolicy
- object RetainUntilDeprecated extends ExpirationPolicy
-
object
Sweeper
Infrequently running cleanup of "leaked" data or data which is otherwise unaccounted for.
Infrequently running cleanup of "leaked" data or data which is otherwise unaccounted for. Unlike the cleanup process (which is optimized for precision and efficiency), the Sweeper is optimized for comprehensiveness over time via repeated execution (even if we miss some "garbage" on execution i, we will eventually clean it up on excution i + N). We only need to ensure that we 1.) cleanup data that was missed during the Cleanup operation and 2.) ensure we aren't progressively leaking resources over the long-term.
Items that are identified as an "UnclaimedResource" (items that have no obvious owner -- which may or may not be garbage) are NOT deleted but will be tracked and counted by the end of the task. The number of Unclaimed Resources will be recorded as a histogram, to allow us to have visibility of accumulation on such items. In the event that we discover that the amount of Unclaimed Resources is increasing over time this is a possible indication that we have a major leakage signaling the need to modify the sweeper to be more aggressive.
- object SweeperDefaults