VictoriaMetrics/app
Aliaksandr Valialkin 7a9f0b32a2
app/vmselect/netstorage: prevent from disk write IO when closing temporary files
Remove temporary file before closing it in order to signal the OS that it shouldn't
store the file contents from page cache to disk when the file is closed.

Gracefully handle the case when the file cannot be removed before being closed -
in this case remove the file after closing it. This allows working on Windows.

Also remove superflouos opening of temporary file for reading - re-use already opened file handle for writing.

This is a follow-up for 9b1e002287
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4020
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/70
2024-02-01 19:54:48 +02:00
..
victoria-logs lib/pushmetrics: wait until the background goroutines, which push metrics, are stopped at pushmetrics.Stop() 2024-01-16 21:18:22 +02:00
vlinsert Add _stream fields log (#5068) 2023-11-17 16:04:13 +01:00
vlselect vmui: reduced the number of server requests (#5253) 2023-11-14 01:50:57 +01:00
vlstorage lib/logstorage: follow-up for 8a23d08c21 2023-10-02 20:38:00 +02:00
vmagent app/vmagent/remotewrite: limit the concurrency for marshaling time series before sending them to remote storage 2024-01-30 12:20:27 +02:00
vmalert vmalert: set ActiveAt to evaluation timestamp in newAlert fn (#5657) 2024-01-29 17:30:14 +01:00
vmalert-tool docs: convert png images to webp in all the docs except of docs/operator/* 2023-11-22 19:29:47 +02:00
vmauth app/vmauth: return 503 service unavailable status code when the backend returns response with unsupported status code, but the request cannot be re-tried. 2024-01-26 21:10:57 +01:00
vmbackup lib/pushmetrics: wait until the background goroutines, which push metrics, are stopped at pushmetrics.Stop() 2024-01-16 21:18:22 +02:00
vmbackupmanager docs: convert png images to webp in all the docs except of docs/operator/* 2023-11-22 19:29:47 +02:00
vmctl app/vmctl/backoff: fix flaky test 2024-01-22 18:42:05 +02:00
vmgateway docs: convert png images to webp in all the docs except of docs/operator/* 2023-11-22 19:29:47 +02:00
vminsert app/vminsert/clusternative: explain why lower-level vminsert doesnt compress responses to upper-level vminsert 2024-01-23 18:14:19 +02:00
vmrestore lib/pushmetrics: wait until the background goroutines, which push metrics, are stopped at pushmetrics.Stop() 2024-01-16 21:18:22 +02:00
vmselect app/vmselect/netstorage: prevent from disk write IO when closing temporary files 2024-02-01 19:54:48 +02:00
vmstorage lib/{mergeset,storage}: make background merge more responsive and scalable 2024-01-26 22:19:52 +01:00
vmui vmui: add the ability to expand all tracing entries (#5677) (#5726) 2024-01-30 21:13:13 +02:00