Jenkins Slave JNLP connection gets terminated Jenkins Slave JNLP connection gets terminated jenkins jenkins

Jenkins Slave JNLP connection gets terminated


I found the problem; it was with my load balancer(haproxy) default timeout for TCP connections (if no traffic) which was 50000ms.https://cbonte.github.io/haproxy-dconv/configuration-1.5.html

However the Jenkins ping interval to slave i.e.hudson.slaves.ChannelPinger.pingInterval was 5 minutes (dafault).https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties

Increasing the load balancer timeout i.e. > 5 minutes solved the issue.