place this statement under the global or default section of the haproxy config:
stats socket 127.0.0.1:14567
I've tried placing above statement into global or default, followed by restart of haproxy.service, however I haproxy.service fails to run with following message:
@tudor, haha, I should have include that to begin with, however since error did not say port is already in use, I thought this would not come up, I was wrong...
# netstat -apn | grep 14567
#
let me also include my interface as well, just in case if someone will think it's missing:
# ip addr show lo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
#
We've tested the module with haproxy 1.6, and the haproxy changelog seems to indicate that the stats socket command is new in 1.6, see the line - MINOR: cli: new stats socket command: show servers state.
It might be that 1.5 just needs a different configuration in haproxy, but I'm not sure.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.