Skip to content

Commit e44d47e

Browse files
committed
Test soft ulimit nofile to be greater equal than 16384
Signed-off-by: Luca Carrogu <[email protected]>
1 parent 6afb480 commit e44d47e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

recipes/tests.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
AWSREGIONS
3232
end
3333

34+
unless node['cfncluster']['os'].end_with?("-custom")
35+
bash 'test soft ulimit nofile' do
36+
code "if (($(ulimit -Sn) < 10000)); then exit 1; fi"
37+
user node['cfncluster']['cfn_cluster_user']
38+
end
39+
end
40+
3441
if node['cfncluster']['cfn_scheduler'] == 'sge'
3542
case node['cfncluster']['cfn_node_type']
3643
when 'MasterServer'

0 commit comments

Comments
 (0)