Score:1

UDP Nginx proxy timeout issue (Shared connection busy)

ms flag

I have setup a TCP/UDP proxy with nginx on multiple servers. Nginx is struggling to handle some client which causes timeouts for the users.

Here is the proxy setup

stream {
    upstream backend {
        server serverip:[my port];
    }

    server {
        listen [my port] udp reuseport;
        proxy_pass backend;
    }
}

I've allowed 10,000 workers connections in the nginx config, but I don't believe it to be a load issue as only 20-50 clients are connected per proxies.

Despite increasing the amount of workers connections, i'm getting this warning from error.log which happens at the same time as UDP timeouts:

[alert] 33872#33872: *13240 shared connection is busy while proxying and sending to client, udp client: [client ip], server: 0.0.0.0:[my port], upstream: "server ip", bytes from/to client:7433/297881, bytes from/to upstream:297905/7433
[alert] 33872#33872: *5529 shared connection is busy while proxying and sending to client, udp client: [client ip], server: 0.0.0.0:[my port], upstream: "server ip", bytes from/to client:1499651/7037337, bytes from/to upstream:7037361/1499651
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.