-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
I have a binlog analyzer process for MySQL 8.0 with zstd compressed binlog. My analyzer suffered from much heavy cpu usage. After I got pprof graph, I can find that zstd.NewReader created much gc load.
My process had many network IO bound jobs with GOMAXPROCS setted to 198. I think zstd.WithDecoderConcurrency(0) may lead to call zstd.newBlockDec and zstd.newFrameDec many times (198) for every transaction_payload_event with heavy gc load.
My question is could we add functions for user to offers value for zstd.WithDecoderConcurrency (for TransactionPayloadEvent or BinlogSyncer ?) ? Or do you have any better solution/advice ?

Metadata
Metadata
Assignees
Labels
No labels