NGINX limit_req tornado web problems
Antonio Pintus
pintux at crs4.it
Wed Jul 13 14:02:20 MSD 2011
Hi all,
I'm trying to use the NGINX limit_req for my app APIs which has 1 NGINX
+ 4 app. server frontends.
My conf is like the following:
http{
...
limit_req_zone $binary_remote_addr zone=data_zone:10m rate=2r/s;
...
server{
...
location ^~ /data/new/ {
limit_req zone=data_zone burst=5 nodelay;
}
...
But it doesn't work, in fact I'm able to call my API /data/new several
times per second with success...and it isn't a good thing :)
Am I missing something?
Thanks in advance.
Best,
Antonio
--
Antonio Pintus
Technologist
ICT group
CRS4, Center for Advanced Studies, Research and Development in Sardinia
e-mail: pintux at crs4.it
Phone: +39 0709250268
Skype: pintuxskype
CRS4 Home: http://www.crs4.it
More information about the nginx
mailing list