Skip to content

Commit 70ccd31

Browse files
author
Matthew Fisher
authored
Merge pull request #745 from felixbuenemann/patch-1
docs(managing-workflow) Document k8s annotation for AWS ELB idle timeout
2 parents 87589f8 + 2511d0a commit 70ccd31

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/managing-workflow/configuring-load-balancers.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ Depending on what distribution of Kubernetes you use and where you host it, inst
66

77
If a load balancer such as the one described above does exist (whether created automatically or manually) and if you intend on handling any long-running requests, the load balancer (or similar) may require some manual configuration to increase the idle connection timeout. Typically, this is most applicable to AWS and Elastic Load Balancers, but may apply in other cases as well. It does not apply to Google Container Engine, as the idle connection timeout cannot be configured there, but also works as-is.
88

9-
If, for instance, Deis Workflow were installed on kube-aws, this timeout should be increased to a recommended value of 1200 seconds. This will ensure the load balancer does not hang up on the client during long-running operations like an application deployment. Directions for this can be found [here](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-idle-timeout.html).
9+
If, for instance, Deis Workflow were installed on kube-aws, this timeout should be increased to a recommended value of 1200 seconds. This will ensure the load balancer does not hang up on the client during long-running operations like an application deployment.
10+
11+
If you are running Kubernetes v1.4 or later, you should configure the idle timeout using this service annotation:
12+
13+
```
14+
$ kubectl --namespace=deis annotate service/deis-router service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout=1200
15+
```
16+
17+
On older Kubernetes versions, you have to [configure the idle timeout manually](http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-idle-timeout.html), but it will reset back to the default of 60 seconds whenever Kubernetes needs to reconfigure the load balancer, for example because a node in your cluster was added or removed. Remember to re-apply your manual changes if that happens.
1018

1119
## Configuring PROXY protocol
1220

0 commit comments

Comments
 (0)