Fix Kafka retry seek, bound buffers, and cut hot-path CPU/memory waste (Phases 41–44).
Stop consumers from committing past failed offsets, harden Rabbit/DataLake/gateway backpressure, dispose JsonDocument/MinIO correctly, and batch expensive DB/HTTP paths. Track progress in docs/performance.
This commit is contained in:
@@ -9,6 +9,13 @@ public sealed class GatewayOptions
|
||||
public int HeartbeatIntervalSeconds { get; init; } = 60;
|
||||
public int SyncBatchSize { get; init; } = 500;
|
||||
|
||||
/// <summary>
|
||||
/// Hard cap on unsynced <c>buffered_sync_items</c>. When reached, local ingest
|
||||
/// that would enqueue more sync work is rejected (backpressure) so disk and
|
||||
/// catch-up memory stay bounded during prolonged central outages.
|
||||
/// </summary>
|
||||
public int MaxBufferedSyncItems { get; init; } = 50_000;
|
||||
|
||||
/// <summary>
|
||||
/// When true (default), applies EF migrations at startup. The gateway is
|
||||
/// single-instance by design, so startup migration is safe. Set false if
|
||||
|
||||
Reference in New Issue
Block a user