From 73c16f140c79315db6df967eeb83c7b9c3c5eb4b Mon Sep 17 00:00:00 2001 From: Tushar Aggarwal Date: Thu, 6 Aug 2020 11:26:56 -0700 Subject: [PATCH] Increase net.ipv4.tcp_limit_output_bytes for Photon - Photon's default kernel value for `net.ipv4.tcp_limit_output_bytes` is 256K compared to 1MB in Ubuntu --- images/capi/ansible/roles/node/tasks/photon.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/images/capi/ansible/roles/node/tasks/photon.yml b/images/capi/ansible/roles/node/tasks/photon.yml index b9690741cc..6f144dac2d 100644 --- a/images/capi/ansible/roles/node/tasks/photon.yml +++ b/images/capi/ansible/roles/node/tasks/photon.yml @@ -25,4 +25,13 @@ dest: /etc/audit/rules.d/containerd.rules owner: root group: root - mode: 0644 \ No newline at end of file + mode: 0644 + +- name: Ensure Bandwidth for TCP connections should 1 Mb (same as Ubuntu) + sysctl: + name: net.ipv4.tcp_limit_output_bytes + value: "1048576" + state: present + sysctl_set: yes + reload: yes + sysctl_file: "{{ sysctl_conf_file }}"