Andrew Bogott has submitted this change and it was merged.

Change subject: Add a line specifying the nova api rate limits.
......................................................................


Add a line specifying the nova api rate limits.

This line doesn't change any of the defaults.  I'm commiting
this to establish a baseline... the next patch will actually
change these limits, temporarily.

Change-Id: Ie79b3c6f262ffb18d6db362a11f4182083fd2c78
---
M templates/openstack/folsom/nova/api-paste.ini.erb
M templates/openstack/havana/nova/api-paste.ini.erb
2 files changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Andrew Bogott: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/templates/openstack/folsom/nova/api-paste.ini.erb 
b/templates/openstack/folsom/nova/api-paste.ini.erb
index 269d956..5423e72 100644
--- a/templates/openstack/folsom/nova/api-paste.ini.erb
+++ b/templates/openstack/folsom/nova/api-paste.ini.erb
@@ -87,6 +87,7 @@
 
 [filter:ratelimit]
 paste.filter_factory = 
nova.api.openstack.compute.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)
 
 [filter:sizelimit]
 paste.filter_factory = nova.api.sizelimit:RequestBodySizeLimiter.factory
diff --git a/templates/openstack/havana/nova/api-paste.ini.erb 
b/templates/openstack/havana/nova/api-paste.ini.erb
index 6a03bb3..2b36b0f 100644
--- a/templates/openstack/havana/nova/api-paste.ini.erb
+++ b/templates/openstack/havana/nova/api-paste.ini.erb
@@ -87,6 +87,7 @@
 
 [filter:ratelimit]
 paste.filter_factory = 
nova.api.openstack.compute.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)
 
 [filter:sizelimit]
 paste.filter_factory = nova.api.sizelimit:RequestBodySizeLimiter.factory

-- 
To view, visit https://gerrit.wikimedia.org/r/115614
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie79b3c6f262ffb18d6db362a11f4182083fd2c78
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>
Gerrit-Reviewer: Andrew Bogott <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to