<div dir="ltr">Hi all,<div><br></div><div><br></div><div style>We are looking into changing the default values for nova API rate limiting to be something that will work on a small (several rack) deployment. </div><div style>
<br></div><div style><div style="font-family:arial,sans-serif;font-size:13px"><a href="https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/limits.py#L225" target="_blank">https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/<span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">limits</span>.py#L225</a><br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Here are the current values:</div><div style="font-family:arial,sans-serif;font-size:13px">
<pre style="white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px"><div style="padding-left:10px;background-color:rgb(255,255,204)">
DEFAULT_LIMITS <span style="font-weight:bold">=</span> [</div><div style="padding-left:10px">
<span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">Limit</span>(<span style="color:rgb(221,17,68)">"POST"</span>, <span style="color:rgb(221,17,68)">"*"</span>, <span style="color:rgb(221,17,68)">".*"</span>, <span style="color:rgb(0,153,153)">10</span>, PER_MINUTE),</div>
<div style="padding-left:10px"> <span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">Limit</span>(<span style="color:rgb(221,17,68)">"POST"</span>, <span style="color:rgb(221,17,68)">"*/servers"</span>, <span style="color:rgb(221,17,68)">"^/servers"</span>, <span style="color:rgb(0,153,153)">50</span>, PER_DAY),</div>
<div style="padding-left:10px"> <span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">Limit</span>(<span style="color:rgb(221,17,68)">"PUT"</span>, <span style="color:rgb(221,17,68)">"*"</span>, <span style="color:rgb(221,17,68)">".*"</span>, <span style="color:rgb(0,153,153)">10</span>, PER_MINUTE),</div>
<div style="padding-left:10px"> <span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">Limit</span>(<span style="color:rgb(221,17,68)">"GET"</span>, <span style="color:rgb(221,17,68)">"*changes-since*"</span>, <span style="color:rgb(221,17,68)">".*changes-since.*"</span>, <span style="color:rgb(0,153,153)">3</span>, PER_MINUTE),</div>
<div style="padding-left:10px"> <span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">Limit</span>(<span style="color:rgb(221,17,68)">"DELETE"</span>, <span style="color:rgb(221,17,68)">"*"</span>, <span style="color:rgb(221,17,68)">".*"</span>, <span style="color:rgb(0,153,153)">100</span>, PER_MINUTE),</div>
<div style="padding-left:10px"> <span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">Limit</span>(<span style="color:rgb(221,17,68)">"GET"</span>, <span style="color:rgb(221,17,68)">"*/os-fping"</span>, <span style="color:rgb(221,17,68)">"^/os-fping"</span>, <span style="color:rgb(0,153,153)">12</span>, PER_HOUR),</div>
<div style="padding-left:10px">]</div><div style="padding-left:10px"><br></div><div style="padding-left:10px">What are you using in production, or do you use it at all?</div>
<div style="padding-left:10px"><br></div><div style="padding-left:10px"><span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">Rate</span> <span class="" style="background-color:rgb(255,255,204);color:rgb(34,34,34)">limiting</span> to 10 POSTS per minute and 50 servers per day seems *way* to low for any sort of deployment - production or otherwise. </div>
<div style="padding-left:10px"><br></div><div style="padding-left:10px">I was thinking of changing all the values to something closer to 120 requests per minute for everything, what do you, the operators, think?</div><div style="padding-left:10px">
<br></div><div style="padding-left:10px">best,</div><div style="padding-left:10px">Joe </div><div><br></div></pre></div></div></div>