Merge "Tune ElasticSearch settings."
This commit is contained in:
commit
5a9b670003
10
modules/logstash/files/es-logstash-template.json
Normal file
10
modules/logstash/files/es-logstash-template.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -50,6 +50,24 @@ class logstash::elasticsearch (
|
|||||||
require => Package['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':
|
file { '/etc/elasticsearch/default-mapping.json':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => 'puppet:///modules/logstash/elasticsearch.mapping.json',
|
source => 'puppet:///modules/logstash/elasticsearch.mapping.json',
|
||||||
|
@ -139,7 +139,7 @@ node.name: "<%= scope.lookupvar("::hostname") %>"
|
|||||||
index.store.compress.stored: true
|
index.store.compress.stored: true
|
||||||
index.store.compress.tv: true
|
index.store.compress.tv: true
|
||||||
|
|
||||||
indices.memory.index_buffer_size: "40%"
|
indices.memory.index_buffer_size: "33%"
|
||||||
|
|
||||||
#################################### Paths ####################################
|
#################################### Paths ####################################
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user