Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EventCacheCount as member of BinlogSyncerConfig to limit streamer…
…'s event channel size (#830) * lower memory usage by reducing event chan size in streamer When consuming events from stream is blocked, the chan may use too much memory * make streamer's event chan size configurable When the consumption speed of the event chan in streamer cannot catch up with its production speed, leading to an accumulation of events, the current fixed channel size of 10240 might occupy significant memory, potentially triggering an Out Of Memory (OOM) condition. Making the size of the event chan configurable would allow for controlling the memory usage of the streamer. * update cfg name StreamerChanSize to EventCacheSize * EventCacheSize is renamed to EventCacheCount, to make the variable name more reflective of its actual meaning.
- Loading branch information