v.25.10New Feature
Limit the number of named collections through
Limit the number of named collections through settingmax_named_collection_num_to_warnandmax_named_collection_num_to_throw. Add new metricNamedCollectionand errorTOO_MANY_NAMED_COLLECTIONS. #87343 (Pablo Marcos).
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 parametersmax_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.