Skip to content

Commit

Permalink
Setting the WAL TTL to be 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwanthkumar committed May 17, 2016
1 parent c4ae269 commit 948851f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/in/ashwanthkumar/matsya/RocksDBStore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class RocksDBStore(input: String) extends TimeSeriesStore with StateStore {
val dbOptions = new Options()
.setCreateIfMissing(true)
.setMaxBackgroundCompactions(2)
.setWalTtlSeconds(86400)
new File(input).mkdirs
RocksDB.open(dbOptions, input)
}
Expand Down

0 comments on commit 948851f

Please sign in to comment.