mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
f3e5c9c246
Previously only up to 100K results were cached. This could result in sub-optimal performance when more than 100K unique strings were actually used. For example, when the relabeling rule was applied to a million of unique Graphite metric names like in the https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3466 This commit should reduce the long-term CPU usage for https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3466 after all the unique Graphite metrics are registered in the FastStringMatcher.Transform() cache. It is expected that the number of unique strings, which are passed to FastStringMatcher.Match(), FastStringTransformer.Transform() and to InternString() during the last 5 minutes, is limited, so the function results fit memory. Otherwise OOM crash can occur. This should be the case for typical production workloads. |
||
---|---|---|
.. | ||
bytebuffer_test.go | ||
bytebuffer.go | ||
bytesutil_test.go | ||
bytesutil.go | ||
fast_string_matcher_test.go | ||
fast_string_matcher_timing_test.go | ||
fast_string_matcher.go | ||
fast_string_transformer_test.go | ||
fast_string_transformer_timing_test.go | ||
fast_string_transformer.go | ||
internstring_test.go | ||
internstring_timing_test.go | ||
internstring.go | ||
itoa_test.go | ||
itoa.go |