Simple test for LimitNPROC

This commit is contained in:
Dale McDiarmid 2017-08-18 16:32:00 +01:00
parent 23abae8c67
commit ed8ab11227
2 changed files with 2 additions and 0 deletions

View file

@ -28,6 +28,7 @@
#add a custom log4j file #add a custom log4j file
es_config_log4j2: "./files/logging/log4j2.properties.custom.j2" es_config_log4j2: "./files/logging/log4j2.properties.custom.j2"
es_api_port: 9401 es_api_port: 9401
es_max_threads: 3000
es_plugins: es_plugins:
- plugin: ingest-attachment - plugin: ingest-attachment
- plugin: ingest-user-agent - plugin: ingest-user-agent

View file

@ -139,6 +139,7 @@ shared_examples 'config::init' do |es_version,plugins|
describe file('/usr/lib/systemd/system/node1_elasticsearch.service') do describe file('/usr/lib/systemd/system/node1_elasticsearch.service') do
it { should be_file } it { should be_file }
it { should contain 'LimitMEMLOCK=infinity' } it { should contain 'LimitMEMLOCK=infinity' }
it { should contain 'LimitNPROC=3000' }
end end
else else
describe file('/etc/init.d/node1_elasticsearch') do describe file('/etc/init.d/node1_elasticsearch') do