<commit_before>resource "aws_elb" "k8s_masters" {
  connection_draining = true
  name = "kaws-k8s-masters-${var.cluster}"
  security_groups = ["${aws_security_group.balancers.id}"]
  subnets = ["${aws_subnet.public.id}"]

  listener {
    instance_port = 443
    instance_protocol = "tcp"
    lb_port = 443
    lb_protocol = "tcp"
  }

  health_check {
    healthy_threshold = 2
    interval = 30
    target = "http:8080/healthz"
    timeout = 3
    unhealthy_threshold = 2
  }

  tags {
    Name = "kaws-k8s-masters"
    KubernetesCluster = "${var.cluster}"
  }
}

resource "aws_elb" "k8s_nodes" {
  connection_draining = true
  name = "kaws-k8s-nodes-${var.cluster}"
  security_groups = ["${aws_security_group.balancers.id}"]
  subnets = ["${aws_subnet.public.id}"]

  listener {
    instance_port = 30000
    instance_protocol = "tcp"
    lb_port = 80
    lb_protocol = "tcp"
  }

  listener {
    instance_port = 30001
    instance_protocol = "tcp"
    lb_port = 443
    lb_protocol = "tcp"
  }

  health_check {
    healthy_threshold = 2
    interval = 30
    target = "http:10249/healthz"
    timeout = 3
    unhealthy_threshold = 2
  }

  tags {
    Name = "kaws-k8s-nodes"
    KubernetesCluster = "${var.cluster}"
  }
}
<commit_msg>Increase the idle timeout for ELBs to 3600 seconds.<commit_after>resource "aws_elb" "k8s_masters" {
  connection_draining = true
  idle_timeout = 3600
  name = "kaws-k8s-masters-${var.cluster}"
  security_groups = ["${aws_security_group.balancers.id}"]
  subnets = ["${aws_subnet.public.id}"]

  listener {
    instance_port = 443
    instance_protocol = "tcp"
    lb_port = 443
    lb_protocol = "tcp"
  }

  health_check {
    healthy_threshold = 2
    interval = 30
    target = "http:8080/healthz"
    timeout = 3
    unhealthy_threshold = 2
  }

  tags {
    Name = "kaws-k8s-masters"
    KubernetesCluster = "${var.cluster}"
  }
}

resource "aws_elb" "k8s_nodes" {
  connection_draining = true
  idle_timeout = 3600
  name = "kaws-k8s-nodes-${var.cluster}"
  security_groups = ["${aws_security_group.balancers.id}"]
  subnets = ["${aws_subnet.public.id}"]

  listener {
    instance_port = 30000
    instance_protocol = "tcp"
    lb_port = 80
    lb_protocol = "tcp"
  }

  listener {
    instance_port = 30001
    instance_protocol = "tcp"
    lb_port = 443
    lb_protocol = "tcp"
  }

  health_check {
    healthy_threshold = 2
    interval = 30
    target = "http:10249/healthz"
    timeout = 3
    unhealthy_threshold = 2
  }

  tags {
    Name = "kaws-k8s-nodes"
    KubernetesCluster = "${var.cluster}"
  }
}

{'fraction_non_alphanumeric': 0.12373145979703357, 'fraction_numerical': 0.04059328649492584, 'mean_word_length': 2.9674922600619196, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4475446', 'n_tokens_mistral': 1035, 'n_tokens_neox': 933, 'n_words': 174}