← Back to team overview

openstack team mailing list archive

Re: Configure Rate limits on OS API

 

On Tue, Dec 27, 2011 at 2:33 PM, Nirmal Ranganathan <rnirmal@xxxxxxxxx>wrote:

> You can configure those values thru the paste conf.
>
> [filter:ratelimit]
> paste.filter_factory =
> nova.api.openstack.limits:RateLimitingMiddleware.factory
> limits =("POST", "*", ".*", 10, MINUTE);("POST", "*/servers", "^/servers",
> 50, DAY);("PUT", "*", ".*", 10, MINUTE);("GET", "*changes-since*",
> ".*changes-since.*", 3, MINUTE);("DELETE", "*", ".*", 100, MINUTE)
>
>
Am I correct in assuming that this will only work with setting the global
limits?  Is there anyway to specify different limits for different accounts
or groups of accounts?

-Blake


>
> On Mon, Dec 19, 2011 at 1:28 PM, Day, Phil <philip.day@xxxxxx> wrote:
>
>> Hi Folks,****
>>
>> ** **
>>
>> Is there a file that can be used to configure the API rate limits for the
>> OS API on a per user basis ?****
>>
>> ** **
>>
>> I can see where the default values are set in the code, but it looks as
>> if there should be a less brutal configuration mechanism to go along with
>> this ?****
>>
>> ** **
>>
>> Thanks****
>>
>> Phil ****
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Nirmal
> ----------------------------
> http://rnirmal.com
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References