Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Benchmarking Perl's Net::Async::FastCGI app consistently return LOTS of "Non-2xx responses"

by Anonymous Monk
on Dec 04, 2025 at 21:03 UTC ( [id://11166845]=note: print w/replies, xml ) Need Help??


in reply to Re: Benchmarking Perl's Net::Async::FastCGI app consistently return LOTS of "Non-2xx responses"
in thread Benchmarking Perl's Net::Async::FastCGI app consistently return LOTS of "Non-2xx responses"

I already tried reducing both the number of total requests to 40, and concurrent requests to 20; and it still returns 24 "Bad Gateway"s. Since a concurrent requests level of 20 is really child-play, there's something very funky going on here. Using TCP port number instead of Unix socket makes it even worse. I literally use the helloworld example verbatum (except for the Unix socket tweak) from the Net::Async::FastCGI examples on metacpan.org. So kinda of run out of idea here...
  • Comment on Re^2: Benchmarking Perl's Net::Async::FastCGI app consistently return LOTS of "Non-2xx responses"

Replies are listed 'Best First'.
Re^3: Benchmarking Perl's Net::Async::FastCGI app consistently return LOTS of "Non-2xx responses"
by Corion (Patriarch) on Dec 05, 2025 at 07:13 UTC

    Maybe try reducing the concurrency to 1 and 2, just to see if you are at all able to have more than one request in flight at the same time?

      From ApacheBench result above, 15 out of 100 requests return a successful 200 OK code, while 85 of them return the 502 Bad Gateway.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11166845]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2026-01-14 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.