Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/sap_hana_preconfigure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ The saptune solution to apply (SLES for SAP Applications).<br>
- _Default:_ `false`

On Azure, TCP timestamps, reuse and recycle should be disabled (SLES for SAP Applications).<br>
If the variable is set, an override file for saptune will be created (/etc/saptune/override/2382421) to set net.ipv4.tcp_timestamps and net.ipv4.tcp_tw_reuse to 0.<br>
Set this parameter to `true` on Azure.<br>

<!-- END: Role Input Parameters for sap_hana_preconfigure -->
Expand Down
21 changes: 0 additions & 21 deletions roles/sap_hana_preconfigure/tasks/SLES/assert-configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,3 @@
fail_msg: "FAIL: the configured saptune solution is '{{ __sap_hana_preconfigure_saptune_configured_solution
}}'' and does not match the expected solution '{{ sap_hana_preconfigure_saptune_solution }}'"
success_msg: "PASS: the configured saptune solution matches the expected solution '{{ sap_hana_preconfigure_saptune_solution }}'"

# If this is a cluster node on Azure, we need to override to disable tcp timestamps, reuse and recycle.
# This can be done by copying the sapnote file 2382421 from /usr/share/saptune/notes to /etc/saptune/override
# The value can then override in the in the new file

# - name: Disable TCP timestamps, recycle & reuse
# ansible.builtin.blockinfile:
# path: /etc/saptune/override/2382421
# create: yes
# backup: yes
# owner: root
# group: root
# mode: '0640'
# marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
# block: |
# [sysctl]
# net.ipv4.tcp_timestamps = 0
# net.ipv4.tcp_tw_reuse = 0
# net.ipv4.tcp_tw_recycle = 0
# when:
# - sap_hana_preconfigure_saptune_azure
2 changes: 1 addition & 1 deletion roles/sap_hana_preconfigure/tasks/SLES/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
# If this is a cluster node on Azure, we need to override to disable tcp timestamps, reuse and recycle.
# This can be done by copying the sapnote file 2382421 from /usr/share/saptune/notes to /etc/saptune/override
# The value can then override in the in the new file
# net.ipv4.tcp_tw_recycle = 0 was removed as it is not relevant for SLES 15+

- name: Disable TCP timestamps, recycle & reuse
ansible.builtin.blockinfile:
Expand All @@ -106,7 +107,6 @@
[sysctl]
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_tw_reuse = 0
net.ipv4.tcp_tw_recycle = 0
when:
- sap_hana_preconfigure_saptune_azure

Expand Down