Welcome! Log In Create A New Profile

Advanced

Fwd: Error while restarting HAProxy 1.8 due to socket connections

Posted by Saarrah Isthikar 
Saarrah Isthikar
Fwd: Error while restarting HAProxy 1.8 due to socket connections
November 14, 2017 12:10PM
+[haproxy@formilux.org]

Saarrah I. Isthikar
Undergraduate
Computer Science and Engineering
University Of Moratuwa
Tel : +94767924848
Email : saarrahisthikar@gmail.com
LinkedIn : https://lk.linkedin.com/in/saarrah


---------- Forwarded message ----------
From: Saarrah Isthikar <saarrahisthikar@gmail.com>
Date: Tue, Nov 14, 2017 at 3:04 PM
Subject: Error while restarting HAProxy 1.8 due to socket connections
To: haproxy+help@formilux.org


Hi all,

Currently I' working on a project to retrieve HAProxy statistics. I
retrieve HAProxy statistics using unix socket. The Kubernetes load-balancer
is used by me[1]. Kubernetes uses HAProxy 1.6. This version of HAProxy does
not support in preservation of unix socket connections. So, I had to change
the HAProxy version to 1.8, which supports preservation of unix socket
connections. But, the following error is occurring once I restart the
HAProxy.




The Dockerfile is as follows



The haproxy_reload file is as follows.




The global section of the template of the HAProxy configuration is as
follows.



​*FYI : It worked fine in my machine (HAProxy reload worked fine with no
errors due to the socket connections). The socket connections was passed
from old process to the new process without any errors. But this error was
occurring when reloading the HAProxy container.*

Please can someone give an idea of a way to solve this error.

[1] https://github.com/kubernetes/contrib/tree/master/service-loadbalancer

Thank you.

Saarrah I. Isthikar
Undergraduate
Computer Science and Engineering
University Of Moratuwa
Tel : +94767924848 <076%20792%204848>
Email : saarrahisthikar@gmail.com
LinkedIn : https://lk.linkedin.com/in/saarrah
Attachments:
open | download - Template.png (41.8 KB)
open | download - DockerExpected.png (144.1 KB)
open | download - ErrorExpected.png (100.7 KB)
open | download - reload.png (73.4 KB)
Sorry, only registered users may post in this forum.

Click here to login