← Back to team overview

openstack team mailing list archive

Re: Configure Rate limits on OS API

 

Hi Blake,

Repose is capable of rate limiting based on group.  It also supports querying limits and maintaining the limits consistent even as nodes are scaled horizontally.

You can find the code on git hub:

https://github.com/rackspace/repose

Here's the presentation I gave on the subject on Essex: https://github.com/rackspace/repose/raw/master/documentation/presentations/OpenStack_Essex_2011/ReposePresentation.pdf

Our mailing lists if you have further questions here:

http://lists.openrepose.org/mailman/listinfo

-jOrGe W.


On Jan 10, 2012, at 4:06 PM, Blake Yeager wrote:

On Tue, Dec 27, 2011 at 2:33 PM, Nirmal Ranganathan <rnirmal@xxxxxxxxx<mailto: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<mailto: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<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp




--
Nirmal
----------------------------
http://rnirmal.com<http://rnirmal.com/>

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


References