v.25.10New Feature

Limit the number of named collections through

Limit the number of named collections through setting max_named_collection_num_to_warn and max_named_collection_num_to_throw. Add new metric NamedCollection and error TOO_MANY_NAMED_COLLECTIONS. #87343 (Pablo Marcos).
Introduces limits on the number of named collections with configurable warning and error thresholds, along with a new metric and error type related to named collections.

Why it matters

To help users control and monitor the usage of named collections by setting thresholds that trigger warnings or errors when exceeded, preventing potential resource overuse or mismanagement.

How to use it

Set the parameters max_named_collection_num_to_warn and max_named_collection_num_to_throw in the server configuration to specify the warning and error thresholds respectively. Monitor the new NamedCollection metric for usage statistics and handle the TOO_MANY_NAMED_COLLECTIONS error if the limit is exceeded.