Ori.livneh has submitted this change and it was merged.
Change subject: kibana: Reduce cache duration for metadata
..
kibana: Reduce cache duration for metadata
Caching the metadata for 15 minutes causes frontend devices to wait to
see the new index when the UTC date rolls over. Reducing the cache
duration should make this lag less noticeable while still providing some
value for clients that are refreshing at a high rate.
Change also includes the addition of the .*/_aliases proxy mapping
needed by the latest versions of kibana.
Change-Id: I07dc6a20ebf4f966db4d9867e5ff8b60fdfc3cfd
---
M templates/kibana/apache.conf.erb
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Ori.livneh: Verified; Looks good to me, approved
diff --git a/templates/kibana/apache.conf.erb b/templates/kibana/apache.conf.erb
index 38c2737..eef2c2b 100644
--- a/templates/kibana/apache.conf.erb
+++ b/templates/kibana/apache.conf.erb
@@ -66,11 +66,11 @@
/LocationMatch
# Elasticsearch meta-data requests
- LocationMatch ^/(_nodes|_aliases|_mapping|.*/_mapping)$
+ LocationMatch ^/(_nodes|_aliases|.*/_aliases|_mapping|.*/_mapping)$
ProxyPassMatch http://%= @es_host %:%= @es_port %/$1
ProxyPassReverse http://%= @es_host %:%= @es_port %/$1
-# Allow caching for 15 minutes
-Header set Cache-Control public, must-revalidate, max-age=900
+# Allow caching for 1 minute
+Header set Cache-Control public, must-revalidate, max-age=60
/LocationMatch
# Storage/retrieval of saved dashboards via elasticsearch
--
To view, visit https://gerrit.wikimedia.org/r/108185
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I07dc6a20ebf4f966db4d9867e5ff8b60fdfc3cfd
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BryanDavis bda...@wikimedia.org
Gerrit-Reviewer: Ori.livneh o...@wikimedia.org
Gerrit-Reviewer: jenkins-bot
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits