Skip to content

Commit

Permalink
service: raise open files limit to 16384 by default
Browse files Browse the repository at this point in the history
status-im/infra-nimbus#132

Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Sep 6, 2023
1 parent 3dee50c commit 4fd4f79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ beacon_node_validators_path: '{{ beacon_node_data_path }}/validators'
beacon_node_launchd_service_name: 'status.{{ beacon_node_service_name }}'
beacon_node_launchd_config_folder: '/Library/LaunchDaemons'
beacon_node_launchd_config_path: '{{ beacon_node_launchd_config_folder }}/{{ beacon_node_launchd_service_name }}.plist'
beacon_node_launchd_max_open_files: 16384

# Builds
beacon_node_build_script_path: '{{ beacon_node_service_path }}/build.sh'
Expand Down
6 changes: 6 additions & 0 deletions templates/launchd.plist.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
<key>WorkingDirectory</key>
<string>{{ beacon_node_service_path }}</string>

<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>{{ beacon_node_launchd_max_open_files }}</integer>
</dict>

<key>ProgramArguments</key>
<array>
<string>{{ beacon_node_repo_path }}/build/nimbus_beacon_node</string>
Expand Down

0 comments on commit 4fd4f79

Please sign in to comment.