VictoriaMetrics/app
Aliaksandr Valialkin 120f3bc467
lib/logstorage: follow-up for 8a23d08c21
- Compare the actual free disk space to the value provided via -storage.minFreeDiskSpaceBytes
  directly inside the Storage.IsReadOnly(). This should work fast in most cases.
  This simplifies the logic at lib/storage.

- Do not take into account -storage.minFreeDiskSpaceBytes during background merges, since
  it results in uncontrolled growth of small parts when the free disk space approaches -storage.minFreeDiskSpaceBytes.
  The background merge logic uses another mechanism for determining whether there is enough
  disk space for the merge - it reserves the needed disk space before the merge
  and releases it after the merge. This prevents from out of disk space errors during background merge.

- Properly handle corner cases for flushing in-memory data to disk when the storage
  enters read-only mode. This is better than losing the in-memory data.

- Return back Storage.MustAddRows() instead of Storage.AddRows(),
  since the only case when AddRows() can return error is when the storage is in read-only mode.
  This case must be handled by the caller by calling Storage.IsReadOnly()
  before adding rows to the storage.
  This simplifies the code a bit, since the caller of Storage.MustAddRows() shouldn't handle
  errors returned by Storage.AddRows().

- Properly store parsed logs to Storage if parts of the request contain invalid log lines.
  Previously the parsed logs could be lost in this case.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4737
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4945
2023-10-02 20:38:00 +02:00
..
victoria-logs app/vlselect: handle vmui at /select/vmui path instead of /vmui 2023-07-06 21:36:28 -07:00
vlinsert lib/logstorage: follow-up for 8a23d08c21 2023-10-02 20:38:00 +02:00
vlselect app/{vmselect,vlselect}: run make vmui-update vmui-logs-update after recent changes to app/vmui 2023-08-29 12:58:58 +02:00
vlstorage lib/logstorage: follow-up for 8a23d08c21 2023-10-02 20:38:00 +02:00
vmagent app/vmagent: follow-up for cfef814750 2023-10-01 20:52:29 +02:00
vmalert docs/vmalert.md: refer to -evaluationInterval command-line flag instead of evaluation_interval option, which isnt supported by vmalert 2023-10-02 20:32:02 +02:00
vmauth Docker add vmauth (#5057) 2023-10-01 21:24:01 +02:00
vmbackup docs/vmbackup: update docs for different authentication options, add examples (#5046) 2023-09-22 11:42:34 +02:00
vmbackupmanager docs/vmbackup: update docs for different authentication options, add examples (#5046) 2023-09-22 11:42:34 +02:00
vmctl go.mod: increase the minimum supported Go version from Go1.19 to Go1.20 2023-09-07 12:18:12 +02:00
vmgateway docs: sync description for license flags (#4977) 2023-09-08 23:26:25 +02:00
vminsert fixed ingestion via multitenant url for opentsdbhttp (#5061) (#5063) 2023-09-26 10:47:49 +02:00
vmrestore docs: sync description for license flags (#4977) 2023-09-08 23:26:25 +02:00
vmselect app/vmselect: fix bitmap_*() functions behavior (#5021) 2023-10-02 20:13:27 +02:00
vmstorage lib/storage: stop exposing vm_merge_need_free_disk_space metric 2023-09-25 17:00:14 +02:00
vmui vmui: update information about tsdb usage in cluster version (#5004) 2023-10-01 21:30:44 +02:00