limit_req causing 503 Service Unavailable
Posted
by
Hermione
on Server Fault
See other posts from Server Fault
or by Hermione
Published on 2012-09-07T04:53:58Z
Indexed on
2012/09/07
15:40 UTC
Read the original article
Hit count: 284
nginx
I'm frequently getting 503 Service Unavailable
when I have limit_req
turned on. On my logs:
[error] 22963#0: *70136 limiting requests, excess: 1.000 by zone "blitz", client: 64.xxx.xxx.xx, server: dat.com, request: "GET /id/85 HTTP/1.1", host: "dat.com"
My nginx configuration:
limit_req_zone $binary_remote_addr zone=blitz:60m rate=5r/s;
limit_req zone=blitz;
How do I resolve this issue. Isn't 60m already big enough? All my static files are hosted on a amazon s3.
© Server Fault or respective owner