Match loop slow processing

Hello,

I’m using matches with tick rate of 10 with more or less 1 message per second. There’s around 1000 active players and 300 simultaneous matches. I’m seeing these errors popup now:

Match handler data processing too slow

I have this in my config

match:
 input_queue_size: 3
 max_empty_sec: 300

How do I avoid this? I have 16 cores of CPU and the loops shouldn’t take more than 100ms. Any advice would be appreciated.

That warning message is displayed when the match incoming buffer drops messages because the match cannot go through them fast enough.

Why did you set input_queue_size to 3? That means the match can only hold 3 messages until next tick, with 1000 active players sending 1msg per second you’re bound to drop a lot of messages, you likely need to increase the buffer size.

Hi @sesposito , is that the size of queue for all matches? I thought it was per match that’s why I set it to 3, since it’s a turn based game there’s no chance of more than that at a time. I guess I misunderstood the configuration.

The queue is per match, but if you’re seeing that warning then the server is receiving more than 3 messages per tick.

Oh that’s weird, I will investigate, thank you