replace max_fds with sysctl call

The call to max_fds no longer appears valid.  This approach of calling
sysctl is standard across Linux based systems and would be the more
established way to obtain this value.

Change-Id: I1bdbbde0bd2102847a3ab061969115030ea207a6
This commit is contained in:
David J Peacock 2020-11-04 07:23:19 -05:00
parent f64d9c541e
commit 6925f256ed
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
shell: >-
"{{ container_cli }}"
exec $("{{ container_cli }}" ps -q --filter "name=rabbitmq" | head -1)
rabbitmqctl eval 'proplists:get_value(max_fds, erlang:system_info(check_io)).'
rabbitmqctl eval 'sysctl -n fs.file-max'
changed_when: false
- name: Verify the actual limit exceeds the minimal value