You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/10/08 00:25:52 UTC
[airflow-ci-infra] 01/01: Added liberal TCP kernel configuration
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git
commit c2de1b6ab87bf7df0d9af26516fb8ac73a763c71
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Fri Oct 7 19:21:37 2022 -0500
Added liberal TCP kernel configuration
This is needed to avoid "connection reset by peer" when k8s cluster
is under heavy load (see
https://technology.lastminute.com/chasing-k8s-connection-reset-issue/)
---
.../files/{increase_inotify_resources.sh => configure_kernel.sh} | 1 +
github-runner-ami/packer/ubuntu2004.pkr.hcl | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/github-runner-ami/packer/files/increase_inotify_resources.sh b/github-runner-ami/packer/files/configure_kernel.sh
similarity index 95%
rename from github-runner-ami/packer/files/increase_inotify_resources.sh
rename to github-runner-ami/packer/files/configure_kernel.sh
index ae97a8b..5fb2855 100644
--- a/github-runner-ami/packer/files/increase_inotify_resources.sh
+++ b/github-runner-ami/packer/files/configure_kernel.sh
@@ -18,4 +18,5 @@
cat >>/etc/sysctl.conf <<EOF
fs.inotify.max_user_watches = 524288
fs.inotify.max_user_instances = 512
+net.netfilter.nf_conntrack_tcp_be_liberal = 1
EOF
diff --git a/github-runner-ami/packer/ubuntu2004.pkr.hcl b/github-runner-ami/packer/ubuntu2004.pkr.hcl
index 10cd115..f92625a 100644
--- a/github-runner-ami/packer/ubuntu2004.pkr.hcl
+++ b/github-runner-ami/packer/ubuntu2004.pkr.hcl
@@ -38,7 +38,7 @@ source "amazon-ebs" "runner_builder" {
#access_key = ""
#secret_key = ""
region = var.aws_regions[0]
- ami_name = "${var.ami_name}-${var.runner_version}-v13"
+ ami_name = "${var.ami_name}-${var.runner_version}-v14"
ami_regions = var.aws_regions
tag {
key = "Name"
@@ -146,7 +146,7 @@ build {
"./files/install-nodejs.sh",
"./files/install-github-cli.sh",
"./files/docker-compose.sh",
- "./files/increase_inotify_resources.sh",
+ "./files/configure_kernel.sh",
"./files/git.sh",
"./files/runner_bootstrap.sh",
"./files/create-hostedtools-cache.sh",