mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
73f0a805e2
Previously the interval between item addition and its conversion to searchable in-memory part could vary significantly because of too coarse per-second precision. Switch from fasttime.UnixTimestamp() to time.Now().UnixMilli() for millisecond precision. It is OK to use time.Now() for tracking the time when buffered items must be converted to searchable in-memory parts, since time.Now() calls aren't located in hot paths. Increase the flush interval for converting buffered samples to searchable in-memory parts from one second to two seconds. This should reduce the number of blocks, which are needed to be processed during high-frequency alerting queries. This, in turn, should reduce CPU usage. While at it, hardcode the maximum size of rawRows shard to 8Mb, since this size gives the optimal data ingestion pefromance according to load tests. This reduces memory usage and CPU usage on systems with big amounts of RAM under high data ingestion rate. |
||
---|---|---|
.. | ||
block_header.go | ||
block_stream_reader.go | ||
block_stream_reader_test.go | ||
block_stream_writer.go | ||
encoding.go | ||
encoding_test.go | ||
encoding_timing_test.go | ||
filenames.go | ||
inmemory_part.go | ||
merge.go | ||
merge_test.go | ||
metaindex_row.go | ||
part.go | ||
part_header.go | ||
part_search.go | ||
part_search_test.go | ||
table.go | ||
table_search.go | ||
table_search_test.go | ||
table_search_timing_test.go | ||
table_test.go |