Attachment producing overlimit errors

Asked by terryg2012

I have a python test program to make many attachment requests. Out of 100 attachment requests only 20 produced no errors. The remaining 80 is returning the following error:

 OverLimit: This request was rate-limited (HTTP 413)

Could someone please explained the request limitation? How many requests can one submit within a short time period? What is the best practice in submitting the requests? Should there be wait between each requests? How does one check to see if the request actually made the attachment?

The requests are submitted programmatically directly to the python nova client API's. The API that I am using is
   novaclient.v1_1.volumes.create_server_volume

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Giampaolo Lauria
Solved:
Last query:
Last reply:
Revision history for this message
Best Giampaolo Lauria (lauria) said :
#1

Please use the following link to learn about limits (both Rate and Absolute ones):
http://docs.openstack.org/trunk/openstack-compute/developer/openstack-compute-api-1.1/content/ch03s09.html

In the doc (section 3.9.3), you will also find how to query the limits for your account. The results will guide you on how to best submit your requests.

Revision history for this message
terryg2012 (terry-gong) said :
#2

Thanks Giampaolo Lauria, that solved my question.