Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4751

Problem when using dynamic service discovery via DNS and SRV Records

$
0
0

@mustafa.yildirim wrote:

I’m using Consul for dynamic service discovery.

If application port is bigger than 32767, srv_port is not correct.

Configuration:

server-template srv 4 _testsrv._tcp.service.consul inter 1s resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip check

“show servers state” Result:

# be_id be_name srv_id srv_name srv_addr srv_op_state srv_admin_state srv_uweight srv_iweight srv_time_since_last_change srv_check_status srv_check_result srv_check_health srv_check_state srv_agent_state bk_f_forced_id srv_f_forced_id srv_fqdn srv_port srvrecord

4 [testsrv.configuration.abc.com](http://testsrv.configuration.abc.com/) 1 srv1 10.90.21.103 0 96 1 1 20373 15 3 0 14 0 0 0 - 4294934534 _testsrv._tcp.service.consul
4 [testsrv.configuration.abc.com](http://testsrv.configuration.abc.com/) 2 srv2 10.90.21.107 0 96 1 1 20365 15 3 0 14 0 0 0 - 4294934530 _testsrv._tcp.service.consul
4 [testsrv.configuration.abc.com](http://testsrv.configuration.abc.com/) 3 srv3 10.90.21.103 0 96 1 1 20409 15 3 0 14 0 0 0 - 4294934533 _testsrv._tcp.service.consul
4 [testsrv.configuration.abc.com](http://testsrv.configuration.abc.com/) 4 srv4 10.90.21.103 2 0 1 1 20554 15 3 4 6 0 0 0 consul-node-10-90-21-103.node.ayt.consul 4294934535 _testsrv._tcp.service.consul

HAProxy Stat UI gives: 10.90.21.103:-32761 (Negative I think it minus 65536)

IP Address is ok but the port is wrong it should be 32775

I read the code. I think It’s related with this http://git.haproxy.org/?p=haproxy-1.9.git;a=blob;f=src/server.c;h=20f03cefe3deaed01472a24f28374de9f8a4f9b9;hb=HEAD#l2978

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>