Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Created November 15, 2013 12:54
Show Gist options
  • Select an option

  • Save jamescarr/7483918 to your computer and use it in GitHub Desktop.

Select an option

Save jamescarr/7483918 to your computer and use it in GitHub Desktop.
Linux 3.8.0-32-generic #47-Ubuntu SMP Tue Oct 1 22:35:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
class { '::elasticsearch':
ensure => present,
pkg_source => "puppet:///debs/elasticsearch-${version}.deb",
config => {
'cloud.aws.access_key' => 'x',
'cloud.aws.secret_key' => 'x',
'discovery.type' => 'ec2',
'discovery.ec2.groups' => $groups,
'network.host' => '0.0.0.0',
'cluster.name' => $cluster_name,
'index.number_of_shards' => 12,
'index.number_of_replicas' => 1,
'index.store.compress.stored' => 'true',
'index.store.compress.tv' => 'true',
'index.cache.filter.expire' => '10m',
'index.cache.field.expire' => '10m',
'index.cache.field.type' => 'soft',
'discovery.ec2.tag.role' => $role,
'cloud.node.auto_attributes' => true,
'discovery.zen.minimum_master_nodes' => $minimum_master_nodes,
'gateway.recover_after_nodes' => $recover_after_nodes,
'gateway.expected_nodes' => $expected_nodes,
'bootstrap.mlockall' => true,
'path.data' => '/var/data/elasticsearch',
'path.logs' => '/var/log/elasticsearch',
'service_settings' => {
'ES_HEAP_SIZE' => $heap_size,
'ES_USER' => 'elasticsearch',
'ES_GROUP' => 'elasticsearch',
},
},
require => Class['::java'],
}
/etc/security/limits.conf
elasticsearch soft nofile 64000
elasticsearch hard nofile 64000
elasticsearch memlock unlimited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment