Set openstack-health cache_expiration to 5min

This commit shrinks the openstack-health cache expiration time from
the default 15min to 5min. Since we added the async cache updating
the need for a longer cache period has gone away. We had a conservative
default originally to make it less likely that a user would hit a cache
refresh, which with ES queries could take a long time. The async worker
always makes sure that the cached result is always used and if it's
stale the cache is refreshed in the background so there is no user
facing delays. (after the initial cache population)

Change-Id: Ice6ca0e61504f3fff5c4d1e863811710c7c89fb7
This commit is contained in:
Matthew Treinish 2016-05-31 15:29:00 -04:00
parent 5d5291d790
commit 6c26efd377
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
1 changed files with 4 additions and 3 deletions

View File

@ -23,8 +23,9 @@ class openstack_project::openstack_health_api (
) {
include 'openstack_health'
class { 'openstack_health::api':
db_uri => "mysql+pymysql://${subunit2sql_db_user}:${subunit2sql_db_pass}@${subunit2sql_db_host}/${subunit2sql_db_name}",
vhost_name => $hostname,
vhost_port => 80,
db_uri => "mysql+pymysql://${subunit2sql_db_user}:${subunit2sql_db_pass}@${subunit2sql_db_host}/${subunit2sql_db_name}",
vhost_name => $hostname,
vhost_port => 80,
cache_expiration => 300,
}
}