From 1260435c0536b7c47e811f2f0ae64c6143700fc4 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 11 Mar 2016 13:37:20 -0800 Subject: [PATCH] Don't install ES on logstash workers Now that we are running logstash 2.0 the logstash daemon can talk to elasticsearch directly and load balance across the cluster. This means we don't need a local elasticsearch daemon to do that for us. The big savings here is in memory so stop installing and running elasticsearch completely on the workers. Note this will not uninstall an existing ES install you will need to clean that up if a preexisting install is present. Change-Id: I9b622674a74a26e7c3024e684e05291f43aec021 --- .../manifests/logstash_worker.pp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/modules/openstack_project/manifests/logstash_worker.pp b/modules/openstack_project/manifests/logstash_worker.pp index be9226a662..1180f4d217 100644 --- a/modules/openstack_project/manifests/logstash_worker.pp +++ b/modules/openstack_project/manifests/logstash_worker.pp @@ -42,19 +42,4 @@ class openstack_project::logstash_worker ( log_processor::worker { 'D': config_file => 'puppet:///modules/openstack_project/logstash/jenkins-log-worker.yaml', } - - class { '::elasticsearch': - es_template_config => { - 'gateway.recover_after_nodes' => '5', - 'gateway.recover_after_time' => '5m', - 'gateway.expected_nodes' => '6', - 'discovery.zen.minimum_master_nodes' => '5', - 'discovery.zen.ping.multicast.enabled' => false, - 'discovery.zen.ping.unicast.hosts' => $elasticsearch_nodes, - 'node.master' => false, - 'node.data' => false, - }, - heap_size => '1g', - version => '1.7.3', - } }