Merge "Tune ElasticSearch settings."

This commit is contained in:
Jenkins 2013-07-19 23:20:24 +00:00 committed by Gerrit Code Review
commit 5a9b670003
3 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,10 @@
{
"logstash_settings" : {
"template" : "logstash*",
"settings" : {
"index.routing.allocation.total_shards_per_node" : "3",
"index.translog.flush_threshold_ops" : "50000",
"index.cache.field.type" : "soft"
}
}
}

View File

@ -50,6 +50,24 @@ class logstash::elasticsearch (
require => Package['elasticsearch'],
}
file { '/etc/elasticsearch/templates':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
require => Package['elasticsearch'],
}
file { '/etc/elasticsearch/templates/logstash_settings.json':
ensure => present,
source => 'puppet:///modules/logstash/es-logstash-template.json',
replace => true,
owner => 'root',
group => 'root',
mode => '0644',
require => File['/etc/elasticsearch/templates'],
}
file { '/etc/elasticsearch/default-mapping.json':
ensure => present,
source => 'puppet:///modules/logstash/elasticsearch.mapping.json',

View File

@ -139,7 +139,7 @@ node.name: "<%= scope.lookupvar("::hostname") %>"
index.store.compress.stored: true
index.store.compress.tv: true
indices.memory.index_buffer_size: "40%"
indices.memory.index_buffer_size: "33%"
#################################### Paths ####################################