Merge "Create new 30g heap elasticsearch workers"

This commit is contained in:
Jenkins 2014-02-25 01:05:06 +00:00 committed by Gerrit Code Review
commit e796164557
2 changed files with 11 additions and 1 deletions

View File

@ -380,7 +380,7 @@ node /^logstash-worker\d+\.openstack\.org$/ {
}
}
node /^elasticsearch\d*\.openstack\.org$/ {
node /^elasticsearch\d?\.openstack\.org$/ {
class { 'openstack_project::elasticsearch_node':
sysadmins => hiera('sysadmins'),
elasticsearch_nodes => $elasticsearch_nodes,
@ -404,6 +404,14 @@ node /^elasticsearch\d*\.openstack\.org$/ {
'logstash-worker16.openstack.org',
],
discover_nodes => $elasticsearch_nodes,
heap_size => '16g',
}
}
node /^elasticsearch\d\d\.openstack\.org$/ {
class { 'openstack_project::server':
iptables_public_tcp_ports => [22],
sysadmins => hiera('sysadmins'),
}
}

View File

@ -18,6 +18,7 @@ class openstack_project::elasticsearch_node (
$elasticsearch_nodes = [],
$elasticsearch_clients = [],
$discover_nodes = ['localhost'],
$heap_size = '30g',
$sysadmins = []
) {
$iptables_nodes_rule = regsubst ($elasticsearch_nodes, '^(.*)$', '-m state --state NEW -m tcp -p tcp --dport 9200:9400 -s \1 -j ACCEPT')
@ -45,6 +46,7 @@ class openstack_project::elasticsearch_node (
'discovery.zen.ping.multicast.enabled' => false,
'discovery.zen.ping.unicast.hosts' => $discover_nodes,
},
heap_size => $heap_size,
version => '0.90.9',
}