tune the "Wal segment size" with a flag (#5029)
Add WALSegmentSize as an option, and the corresponding flag "storage.tsdb.wal-segment-size" to tune the max size of wal segment files. The addressed base problem is to reduce the disk space used by wal segment files : on a raspberry pi, for instance, we often want to reduce write load of the sd card, then, the wal directory is mounted on a memory (space limited) partition. the default value of the segment max file size, pushed the size of directory to 128 MB for each segment , which is too much ram consumption on a rasp. the initial discussion is at https://github.com/prometheus/tsdb/pull/450
... | ... | @@ -5,6 +5,7 @@ require ( |
github.com/Azure/go-autorest v10.8.1+incompatible | ||
github.com/StackExchange/wmi v0.0.0-20180725035823-b12b22c5341f // indirect | ||
github.com/VividCortex/ewma v1.1.1 // indirect | ||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf | ||
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da // indirect | ||
github.com/aws/aws-sdk-go v0.0.0-20180507225419-00862f899353 | ||
github.com/biogo/store v0.0.0-20160505134755-913427a1d5e8 // indirect | ||
... | ... | @@ -88,7 +89,7 @@ require ( |
github.com/prometheus/client_golang v0.9.1 | ||
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910 | ||
github.com/prometheus/common v0.0.0-20181119215939-b36ad289a3ea | ||
github.com/prometheus/tsdb v0.3.1 | ||
github.com/prometheus/tsdb v0.3.2-0.20181219094047-6d489a1004dc | ||
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a // indirect | ||
github.com/rlmcpherson/s3gof3r v0.5.0 // indirect | ||
github.com/rubyist/circuitbreaker v2.2.1+incompatible // indirect | ||
... | ... |
Please register or sign in to comment