Skip to content

Commit

Permalink
Set retention to ~290 years
Browse files Browse the repository at this point in the history
Set the retention for time-series data as high as the `time.Duration`
type will allow, which is equivalent to approximately 290 years in
nanoseconds.

As a durable time-series database, AthensDB should try to retain data
for as long as possible.
  • Loading branch information
mattbostock committed Sep 3, 2017
1 parent 093cc7e commit b741459
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/athensdb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"math"
"net"
"net/http"
"os"
Expand Down Expand Up @@ -110,7 +111,7 @@ func main() {
AppendableBlocks: 2,
MinBlockDuration: 2 * time.Hour,
MaxBlockDuration: 36 * time.Hour,
Retention: 15 * 24 * time.Hour,
Retention: time.Duration(math.MaxInt64), // approximately 290 years
})
if err != nil {
log.Fatalf("Opening storage failed: %s", err)
Expand Down

0 comments on commit b741459

Please sign in to comment.