VictoriaMetrics/lib/logstorage/filenames.go
Aliaksandr Valialkin 8aa144fa74
lib/logstorage: do not persist streamIDCache, since it may go out of sync with partition directories, which can be changed manually between VictoriaLogs restarts
Partition directories can be manually deleted and copied from another sources such as backups or other VitoriaLogs instances.
In this case the persisted cache becomes out of sync with partitions. This can result in missing index entries
during data ingestion or in incorrect results during querying. So it is better to do not persist caches.
This shouldn't hurt VictoriaLogs performance just after the restart too much, since its caches usually contain
small amounts of data, which can be quickly re-populated from the persisted data.
2024-10-18 02:22:43 +02:00

24 lines
771 B
Go

package logstorage
const (
columnNamesFilename = "column_names.bin"
metaindexFilename = "metaindex.bin"
indexFilename = "index.bin"
columnsHeaderIndexFilename = "columns_header_index.bin"
columnsHeaderFilename = "columns_header.bin"
timestampsFilename = "timestamps.bin"
oldValuesFilename = "field_values.bin"
oldBloomFilename = "field_bloom.bin"
valuesFilename = "values.bin"
bloomFilename = "bloom.bin"
messageValuesFilename = "message_values.bin"
messageBloomFilename = "message_bloom.bin"
metadataFilename = "metadata.json"
partsFilename = "parts.json"
indexdbDirname = "indexdb"
datadbDirname = "datadb"
partitionsDirname = "partitions"
)