-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: community.general usage, updated RFS
Signed-off-by: stafaniasaju <[email protected]>
- Loading branch information
1 parent
834314d
commit 2fbeb57
Showing
6 changed files
with
58 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,48 @@ | ||
--- | ||
# Ensure RFS configuration persists | ||
- name: Configure RFS with 32768 | ||
hosts: all | ||
become: yes | ||
tasks: | ||
- name: Update rps_sock_flow_entries runtime value | ||
ansible.builtin.shell: sysctl -w net.core.rps_sock_flow_entries=32768 | ||
changed_when: false | ||
|
||
- name: Persist rps_sock_flow_entries in sysctl.conf | ||
lineinfile: | ||
path: /etc/sysctl.conf | ||
regexp: '^net.core.rps_sock_flow_entries' | ||
line: 'net.core.rps_sock_flow_entries=32768' | ||
|
||
- name: Reload sysctl configuration | ||
ansible.builtin.shell: sysctl -p | ||
|
||
- name: Create custom systemd unit for RFS configuration | ||
copy: | ||
dest: /etc/systemd/system/rfs-config.service | ||
content: | | ||
[Unit] | ||
Description=Set RPS flow control settings | ||
After=network-online.target | ||
Wants=network-online.target | ||
[Service] | ||
Type=oneshot | ||
ExecStart=/bin/bash -c "sleep 5; for file in $(find /sys/class/net/*/queues/ -name 'rx-*' | grep -v '/lo/'); do echo 32768 > $file/rps_flow_cnt; done" | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: Reload systemd manager configuration | ||
ansible.builtin.shell: systemctl daemon-reload | ||
|
||
- name: Enable and start RFS configuration service | ||
systemd: | ||
name: rfs-config.service | ||
enabled: yes | ||
state: restarted | ||
|
||
- name: Verify sysctl value after service start | ||
ansible.builtin.shell: sysctl net.core.rps_sock_flow_entries | ||
register: sysctl_value | ||
|
||
- name: Debug sysctl value | ||
debug: | ||
var: sysctl_value.stdout | ||
|
||
- name: Verify RFS runtime configuration | ||
ansible.builtin.shell: | | ||
find /sys/class/net/*/queues/ -name 'rx-*' | grep -v '/lo/' | xargs -I{} cat {}/rps_flow_cnt | ||
register: rfs_runtime_values | ||
|
||
- name: Debug RFS runtime values | ||
debug: | ||
var: rfs_runtime_values.stdout_lines | ||
- name: Ensure rps_sock_flow_entries is set at runtime | ||
ansible.posix.sysctl: | ||
name: net.core.rps_sock_flow_entries | ||
value: 32768 | ||
state: present | ||
|
||
- name: Persist rps_sock_flow_entries in sysctl.conf | ||
ansible.builtin.lineinfile: | ||
path: /etc/sysctl.conf | ||
regexp: "^net.core.rps_sock_flow_entries" | ||
line: "net.core.rps_sock_flow_entries=32768" | ||
state: present | ||
|
||
- name: Reload sysctl configuration | ||
ansible.builtin.shell: sysctl -p | ||
register: sysctl_reload | ||
changed_when: "'net.core.rps_sock_flow_entries' in sysctl_reload.stdout" | ||
|
||
- name: Ensure custom systemd unit for RFS configuration exists | ||
ansible.builtin.copy: | ||
dest: /etc/systemd/system/rfs-config.service | ||
content: | | ||
[Unit] | ||
Description=Set RPS flow control settings | ||
After=network-online.target | ||
Wants=network-online.target | ||
[Service] | ||
Type=oneshot | ||
ExecStart=/bin/bash -c "sleep 5; for file in $(find /sys/class/net/*/queues/ -name 'rx-*' | grep -v '/lo/'); do echo 32768 > $file/rps_flow_cnt; done" | ||
[Install] | ||
WantedBy=multi-user.target | ||
owner: root | ||
group: root | ||
mode: "0644" | ||
|
||
- name: Reload systemd manager | ||
ansible.builtin.systemd: | ||
daemon_reload: true | ||
|
||
- name: Enable and start RFS configuration service | ||
ansible.builtin.systemd: | ||
name: rfs-config.service | ||
enabled: true | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# Tuning for SAP on RHEL | ||
- name: Run SAP general preconfigure | ||
ansible.builtin.include_role: | ||
name: sap_general_preconfigure | ||
name: redhat.sap_install.sap_general_preconfigure | ||
vars: | ||
sap_general_preconfigure_fail_if_reboot_required: false | ||
- name: Run SAP HANA preconfigure | ||
ansible.builtin.include_role: | ||
name: sap_hana_preconfigure | ||
name: redhat.sap_install.sap_hana_preconfigure | ||
vars: | ||
sap_hana_preconfigure_fail_if_reboot_required: false | ||
when: | ||
- sap_solution is match("HANA") | ||
- name: Run SAP Netweaver preconfigure | ||
ansible.builtin.include_role: | ||
name: sap_netweaver_preconfigure | ||
name: redhat.sap_install.sap_netweaver_preconfigure | ||
when: | ||
- sap_solution is match("NETWEAVER") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters