VictoriaMetrics/app
Aliaksandr Valialkin 7b33a27874
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 16:52:23 +02:00
..
victoria-logs app/vlselect: handle vmui at /select/vmui path instead of /vmui 2023-06-21 19:52:50 -07:00
victoria-metrics docs: follow-up after aec4b5db81 (#4638) 2023-07-19 10:10:51 +02:00
vlinsert lib/logstorage: follow-up for 8a23d08c21 2023-10-02 16:52:23 +02:00
vlselect app/{vmselect,vlselect}: run make vmui-update vmui-logs-update after recent changes to app/vmui 2023-08-29 12:58:44 +02:00
vlstorage lib/logstorage: follow-up for 8a23d08c21 2023-10-02 16:52:23 +02:00
vmagent app/vmagent: follow-up for cfef814750 2023-10-01 21:09:32 +02:00
vmalert docs/vmalert.md: refer to -evaluationInterval command-line flag instead of evaluation_interval option, which isnt supported by vmalert 2023-10-01 21:54:29 +02:00
vmauth Docker add vmauth (#5057) 2023-09-26 10:50:10 +02:00
vmbackup docs/vmbackup: update docs for different authentication options, add examples (#5046) 2023-09-22 11:19:19 +02:00
vmbackupmanager docs/vmbackup: update docs for different authentication options, add examples (#5046) 2023-09-22 11:19:19 +02:00
vmctl go.mod: increase the minimum supported Go version from Go1.19 to Go1.20 2023-09-07 13:01:38 +02:00
vmgateway docs: sync description for license flags (#4977) 2023-09-08 17:09:34 +04:00
vminsert lib/promrelabel: properly replace : char with _ in metric names when -usePromCompatibleNaming command-line flag is set 2023-08-14 16:14:42 +02:00
vmrestore docs: sync description for license flags (#4977) 2023-09-08 17:09:34 +04:00
vmselect app/vmselect: fix bitmap_*() functions behavior (#5021) 2023-09-29 12:03:01 +02:00
vmstorage lib/storage: stop exposing vm_merge_need_free_disk_space metric 2023-09-25 16:52:39 +02:00
vmui vmui: update information about tsdb usage in cluster version (#5004) 2023-09-29 11:47:45 +02:00