Make the filter limit a restart setting with 0 for no limit

Lowering the limit at runtime would leave connections holding more
filters than allowed, so read it once when the controller starts.
Move the limit tests into the subscribe and replace groups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-10-08 15:13:36 +00:00
1 parent 690b79d2b7
commit d2163cf6a0
5 files changed
+69 -38

No files matched your search

+3 -2
View File
@@ -211,10 +211,11 @@ export class ControllerConfig extends classes.Config<ControllerConfigFields> {
},
"controller.max_subscription_filters": {
title: "Max Subscription Filters",
description: "Maximum number of filters a single connection can hold for one subscribed event.",
description: "Maximum number of filters a connection can hold for one subscribed event, 0 for no limit.",
type: "number",
initialValue: 10000,
validator: validators.all(validators.integer, validators.greaterThanZero),
restartRequired: true,
validator: validators.all(validators.integer, validators.greaterThanEqualZero),
},
"controller.system_metrics_interval": {
title: "System Metrics Interval",