Filippo Giunchedi has submitted this change and it was merged.

Change subject: Get back fewer stats to lower overhead
......................................................................


Get back fewer stats to lower overhead

Elasticsearch 1.3 has high overhead when you request the segments stat and
we were requesting it but not using it.  Lets just not request it.

Change-Id: I1f7e11cf17a4aa2d7a64832e7cec76295a27bde2
---
M modules/elasticsearch/files/ganglia/elasticsearch_monitoring.py
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Filippo Giunchedi: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/elasticsearch/files/ganglia/elasticsearch_monitoring.py 
b/modules/elasticsearch/files/ganglia/elasticsearch_monitoring.py
index a90d30b..01134d1 100644
--- a/modules/elasticsearch/files/ganglia/elasticsearch_monitoring.py
+++ b/modules/elasticsearch/files/ganglia/elasticsearch_monitoring.py
@@ -528,7 +528,8 @@
     def main_path_transformer(data, path):
         node = data['stats']['nodes'].keys()[0]
         return 'nodes.%(node)s.%(path)s' % {'node': node, 'path': path}
-    main_url = '{0}/_nodes/_local/stats?groups=_all'.format(host)
+    stat_groups = 'thread_pool,process,transport,fs,jvm,indices'
+    main_url = '{0}/_nodes/_local/stats/{1}'.format(host, stat_groups)
     main_result = {
         'last_update': 0,
         'url': main_url,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1f7e11cf17a4aa2d7a64832e7cec76295a27bde2
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Manybubbles <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to