Skip to content

Commit

Permalink
Run with WAL and compactions disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-rushakoff committed Dec 21, 2018
1 parent b357b67 commit f1d62ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func main() {
defer sfile.Close()

opts := tsdb.NewEngineOptions()
opts.WALEnabled = false
opts.CompactionDisabled = true
opts.MonitorDisabled = true
opts.InmemIndex = inmem.NewIndex(filepath.Base(tmpDir), sfile.SeriesFile)
opts.SeriesIDSets = seriesIDSets([]*tsdb.SeriesIDSet{})

Expand All @@ -52,7 +55,7 @@ func main() {
panic(err)
}
for i := 0; i < 50; i++ {
if err := sh.DeleteMeasurement([]byte("cpu")); err != nil {
if err := eng.DeleteMeasurement([]byte("cpu")); err != nil {
panic(err)
}

Expand Down

0 comments on commit f1d62ad

Please sign in to comment.