mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
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:
1 parent
690b79d2b7
commit
d2163cf6a0
5 files changed
+69
-38
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user