yyyar / gobetween

:cloud: Modern & minimalistic load balancer for the Сloud era
http://gobetween.io
Other
1.91k stars 210 forks source link

Increased buffer channel size for UDP load balancing #288

Open prb219 opened 4 years ago

prb219 commented 4 years ago

Hi,

I am using Gobetween for UDP load balancing purpose. As of now I see packets being dropped when I send 10K packets/second. Is there any way I could increase it ? I need to handle 100k+ packets/sec. I see that the 'MAX_PACKETS_QUEUE' value in udp sessions.go is set to 10k. Would it be possible to increase this to meet my requirement?

Thanks in advance.

prb219 commented 4 years ago

@yyyar @illarion Do we have any other means to accept/ Load balance more packets with the existing version of GoBetween? A config parameter change perhaps ? Currently I have set the 'max requests' field to 1 for udp server configuration.