~anso/nova/imgcopy

Viewing all changes in revision 283.

  • Committer: Tarmac
  • Author(s): Michael Gundlach
  • Date: 2010-09-20 19:03:59 UTC
  • mfrom: (270.3.6 api-work)
  • Revision ID: hudson@openstack.org-20100920190359-b67dyzovqxhawz1i
Add a RateLimitingMiddleware to the Rackspace API, implementing the rate limits as defined by the current Cloud Servers spec.  The Middleware can do rate counting in memory, or (for deployments that have more than one API Server) can offload to a rate limiting service.

Also adds a:
 - Limiter (basic rate counting object)
 - WSGIApp (serving up a Limiter behind a standalone RESTful application)
 - WSGIAppProxy (drop-in replacement for a Limiter which the Middleware uses when configured to offload to a service)

Note that the nova.api.rackspace.ratelimiting package will be moved to PyPI after Austin, which is why it contains tests in its own directory instead of in nova.tests.  We added the ratelimiting package directly into OpenStack for expediency with the approaching Austin deadline.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: