Sentry 21.5.1 slow processing messages

Hi,

I have on-premise 21.5.1 and it’s so slow in processing messages. We have a heavy load environment, the Sentry is on VM with 24 GB Ram, 16 CPU, and 16G Swap which is full now!

is there any way I can increase workers or tune sentry to process faster? Honestly, I couldn’t find any option to add more workers. I see in the logs it processes about 17 messages but we have tons of them in a minute.

Completed processing <Batch: 17 messages, open for 0.82 seconds>

UPDATE: I see redis uses most of the memory. I searched about this but couldn’t find any suitable tuning.

Regards

Can someone help?