perf(historian): bounded-parallel per-tag drain (DrainConcurrency, default 8)

This commit is contained in:
Joseph Doherty
2026-08-16 04:21:18 -04:00
parent d8a17f2e34
commit a76b4e0740
4 changed files with 271 additions and 23 deletions
@@ -477,7 +477,10 @@ public static class ServiceCollectionExtensions
captureGate: resolver.GetService<IHistorizationRoleView>() is { } histRoleView
? () => histRoleView.ShouldRecordHistorizedValues
: null,
maxWriteAttempts: continuousOptions.MaxWriteAttempts),
maxWriteAttempts: continuousOptions.MaxWriteAttempts,
// Bounded-parallel per-tag drain: the groups in one pass are independent
// gateway round-trips, so a sequential pass costs `tags × latency`.
drainConcurrency: continuousOptions.DrainConcurrency),
ContinuousHistorizationRecorderActorName);
registry.Register<ContinuousHistorizationRecorderKey>(continuousRecorder);
}