0

I've a EC2 instance acting as a proxy for a webserver that are in other region.

This setup works great at the beginning but then, some users start receiving

Proxy error
The proxy server received and invalid response frmo an upstream server.
The proxy server could not handle the request

Reason: Error reading from remote server.

I guess the connection was resetted, so I added a changed in the configuration file of apache:

  ProxyPass / http://.. retry=1 acquire=3000 timeout=600 Keepalive=On

Now, I would like to try to reproduce the problem again, is there any tool that can help me with this purpose? maybe ab?

1

1 Answer 1

1

I use Siege. Make sure you turn on benchmark mode to really stress it. In the /etc/siege/siegerc file use

benchmark = true

As well as setting up how many concurrent users you need, and such

Here's the important parts of the config file, at least for me

connection = keep-alive
benchmark = true
delay = 0

And here's the command line. Note that you of course need to provide that file with URLs to whatever pages you want tested.

siege -c 50  -t5s -f /etc/siege/urls.txt -i -q
2
  • would you mind sharing your config file?
    – Arnold Roa
    Jan 24, 2016 at 11:44
  • Sure, important parts added
    – Tim
    Jan 24, 2016 at 17:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.