Andrew Bogott has submitted this change and it was merged.

Change subject: nova: trigger usage calculation refresh if stale for 30s
......................................................................


nova: trigger usage calculation refresh if stale for 30s

> quota.py

'max_age',
    default=0,
    help='Number of seconds between subsequent usage refreshes. '
         'This defaults to 0(off) to avoid additional load but it '
         'is useful to turn on to help keep quota usage up to date '
         'and reduce the impact of out of sync usage issues. '
         'Note that quotas are not updated on a periodic task, '
         'they will update on a new reservation if max_age has '
         'passed since the last reservation'),

Change-Id: Ica52ea4840c69b7341d17d7c24e2db7d6ff7f699
---
M modules/openstack/templates/liberty/nova/nova.conf.erb
M modules/openstack/templates/mitaka/nova/nova.conf.erb
2 files changed, 7 insertions(+), 0 deletions(-)

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



diff --git a/modules/openstack/templates/liberty/nova/nova.conf.erb 
b/modules/openstack/templates/liberty/nova/nova.conf.erb
index a57ac8c..be771a5 100644
--- a/modules/openstack/templates/liberty/nova/nova.conf.erb
+++ b/modules/openstack/templates/liberty/nova/nova.conf.erb
@@ -46,6 +46,10 @@
 quota_floating_ips=<%= @novaconfig["quota_floating_ips"] %>
 quota_fixed_ips=200
 
+# Quota drift is a common problem
+max_age = 30
+
+
 api_paste_config=/etc/nova/api-paste.ini
 #use_ipv6=True
 allow_same_net_traffic=False
diff --git a/modules/openstack/templates/mitaka/nova/nova.conf.erb 
b/modules/openstack/templates/mitaka/nova/nova.conf.erb
index 62b92e7..175a564 100644
--- a/modules/openstack/templates/mitaka/nova/nova.conf.erb
+++ b/modules/openstack/templates/mitaka/nova/nova.conf.erb
@@ -46,6 +46,9 @@
 quota_floating_ips=<%= @novaconfig["quota_floating_ips"] %>
 quota_fixed_ips=200
 
+# Quota drift is a common problem
+max_age = 30
+
 api_paste_config=/etc/nova/api-paste.ini
 #use_ipv6=True
 allow_same_net_traffic=False

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ica52ea4840c69b7341d17d7c24e2db7d6ff7f699
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Rush <[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