v.21.9Improvement
Add Settings to Limit Regexp Size in Hyperscan Functions
Add two settingsmax_hyperscan_regexp_lengthandmax_hyperscan_regexp_total_lengthto prevent huge regexp being used in hyperscan related functions, such asmultiMatchAny. #27378 (Amos Bird).
Why it matters
These settings prevent the use of excessively large regular expressions in Hyperscan functions, which can help avoid performance degradation or resource exhaustion, ensuring more stable and efficient query execution.How to use it
Users can configure the new settingsmax_hyperscan_regexp_length and max_hyperscan_regexp_total_length in the server config or query settings to set maximum allowed sizes for individual and total regexp lengths used by Hyperscan functions such as multiMatchAny.