These are chat archives for azukiapp/azk

20th
Sep 2016
Slobodan Mišković
@slobo
Sep 20 2016 18:18
hey folks, is there a place to adjust the timeout for requests going through hipache?
Slobodan Mišković
@slobo
Sep 20 2016 18:31

eg, say I have php webserver at php.dev.azk.io and i have sleep.php <?php sleep(65);. Compare these two:

⟩ time curl -v http://php.dev.azk.io/sleep.php
...
* Empty reply from server
curl: (52) Empty reply from server
Command exited with non-zero status 52
0.00user 0.00system 0:30.02elapsed

vs going to the container directly

time curl -v http://php.dev.azk.io:32791/sleep.php
...
< HTTP/1.1 200 OK
...

0.00user 0.00system 1:05.00elapsed
you can see that if ballancer is involved, it terminates connection after 30 seconds, vs webserver will let it run to completion
Slobodan Mišković
@slobo
Sep 20 2016 20:50
i see, we need to change tcpTimeout in balancer.js. I've sent in a pull request that lets us do this (and also other interesting hipache configs) via AZK_BALANCER_... environment vars: azukiapp/azk#689