mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
3b18931050
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.go | ||
bytebuffer_test.go | ||
bytesutil.go | ||
bytesutil_test.go | ||
fast_string_matcher.go | ||
fast_string_matcher_test.go | ||
fast_string_matcher_timing_test.go | ||
fast_string_transformer.go | ||
fast_string_transformer_test.go | ||
fast_string_transformer_timing_test.go | ||
internstring.go | ||
internstring_test.go | ||
internstring_timing_test.go | ||
itoa.go | ||
itoa_test.go |