VictoriaMetrics/lib
Roman Khavronenko 5f95f9d453
lib/storage: check for free disk space before opening tables (#4035)
* lib/storage: check for free disk space before opening tables

We check for free disk space before call to `openTable`,
so `Storage` can be set to ReadOnly before mergeWorkers start.

Before the change, there was a chance that merges will start
even if Storage has to start in ReadOnly mode because of
`-storage.minFreeDiskSpaceBytes` limit.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4023
Signed-off-by: hagen1778 <roman@victoriametrics.com>

* lib/storage: chore

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* Update lib/storage/storage.go

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2023-03-31 23:50:56 -07:00
..
appmetrics
auth app/vminsert: allows parsing tenant id from labels (#3009) 2022-09-30 17:28:35 +03:00
awsapi .golangci.yml: properly enable revive linter and fix all the warnings it detects 2023-02-26 12:19:58 -08:00
backup lib/storage: consistently use OS-independent separator in file paths 2023-03-25 14:34:36 -07:00
blockcache
bloomfilter
buildinfo
bytesutil lib/bytesutil: add -internStringDisableCache and -internStringCacheExpireDuration command-line flags 2023-02-27 14:18:02 -08:00
cgroup
consts
decimal lib/decimal: use consistent randomizer in tests 2023-01-23 19:24:05 -08:00
encoding lib/encoding: make deterministic tests which rely on math/rand 2023-01-23 18:43:49 -08:00
envflag lib/envflag: small refactoring after 518c340ae3 and 02096e06d0 2022-10-29 02:29:19 +03:00
envtemplate allowed using dashes and dots in environment variables names (#4009) 2023-03-24 17:57:19 -07:00
fastnum
fasttime
filestream all: follow-up after 34634ec357 2023-03-25 12:00:48 -07:00
flagutil lib/flagutil: ArrayString: support commas inside quoted strings and inside [], {} and () braces 2023-03-28 21:25:07 -07:00
formatutil app/vmbackupmanager: add metrics for better observability (#488) 2022-12-20 14:18:43 -08:00
fs lib/fs: follow-up for ec45f1bc5f 2023-03-31 22:54:33 -07:00
handshake
htmlcomponents app/vmselect: remove dependency on lib/promscrape from app/vmselect 2023-01-03 23:27:36 -08:00
httpserver lib/httpserver: use github.com/klauspost/compress/gzhttp for compressing http responses 2023-02-27 10:35:26 -08:00
influxutils lib/flagutil: rename Array to ArrayString 2022-10-01 18:28:19 +03:00
ingestserver lib/netutil: init implimentation of proxy protocol (#3687) 2023-01-26 23:25:22 -08:00
leveledbytebufferpool
logger add error handler for parsing prometheus text format to vmagent and v… (#3693) 2023-01-23 22:36:23 -08:00
lrucache
memory app,lib: fix typos in comments (#3804) 2023-02-13 09:32:35 -08:00
mergeset lib/storage: consistently use OS-independent separator in file paths 2023-03-25 14:34:36 -07:00
metricsql
netutil lib/netutil: log only parsing errors for proxy-protocol (#3985) 2023-03-21 10:23:08 -07:00
persistentqueue lib/persistentqueue: typo fix after aea6df8197 2023-03-27 20:05:51 -07:00
procutil lib/procutil: stop immediately after receiving the second SIGINT or SIGTERM signal 2022-10-20 21:58:49 +03:00
promauth chore: Use http constants to replace numbers (#3846) 2023-02-22 18:59:32 -08:00
prompb
prompbmarshal
promrelabel lib/promrelabel: make target url from labels on target relabel page (#3882) 2023-03-20 22:08:39 -07:00
promscrape lib/streamaggr: follow-up for ff72ca14b9 2023-03-31 22:54:10 -07:00
promutils app,lib: fix typos in comments (#3804) 2023-02-13 09:32:35 -08:00
protoparser fix some typo (#3898) 2023-03-08 00:32:57 -08:00
proxy
pushmetrics lib/flagutil: rename Array to ArrayString 2022-10-01 18:28:19 +03:00
querytracer lib/querytracer: fix remaining tests after 49ebc48809 2022-12-08 18:18:50 -08:00
regexutil app,lib: fix typos in comments (#3804) 2023-02-13 09:32:35 -08:00
snapshot app/vmbackup: prevent password leaks (#3672) 2023-01-18 11:40:52 -08:00
storage lib/storage: check for free disk space before opening tables (#4035) 2023-03-31 23:50:56 -07:00
streamaggr lib/streamaggr: follow-up for ff72ca14b9 2023-03-31 22:54:10 -07:00
syncwg
tenantmetrics app/vminsert: allows parsing tenant id from labels (#3009) 2022-09-30 17:28:35 +03:00
timerpool
uint64set lib/uint64set: use repeatable randomizer in tests 2023-01-23 19:24:05 -08:00
vmselectapi lib/vmselectapi: fixes regression for disable compression setting (#3932) 2023-03-12 01:48:08 -08:00
workingsetcache lib/workingsetcache: expose -cacheExpireDuration command-line flag for fine-tuning of the cache expiration 2022-11-17 21:55:11 +02:00
writeconcurrencylimiter lib/writeconcurrencylimiter: initialize concurrencyLimitCh before exporting vm_concurrent_insert_capacity and vm_concurrent_insert_current metrics 2023-02-07 11:08:39 -08:00