unable to point HAProxy to RabbitMQ services

jaymart95PRO

10 months ago

[NOTICE]   (7) : haproxy version is 2.7.12-5e21fc9
[NOTICE]   (7) : path to executable is /usr/local/sbin/haproxy
[ALERT]    (7) : config : [/usr/local/etc/haproxy/haproxy.cfg:23] : 'server rabbitmq_back/rabbit1' : could not resolve address 'rabbitmq-main.railway.internal'.
[ALERT]    (7) : config : Failed to initialize server(s) addr.
[NOTICE]   (7) : haproxy version is 2.7.12-5e21fc9
[NOTICE]   (7) : path to executable is /usr/local/sbin/haproxy
[ALERT]    (7) : config : [/usr/local/etc/haproxy/haproxy.cfg:23] : 'server rabbitmq_back/rabbit1' : could not resolve address 'rabbitmq-main.railway.internal'.
[ALERT]    (7) : config : Failed to initialize server(s) addr.
[NOTICE]   (7) : haproxy version is 2.7.12-5e21fc9
[NOTICE]   (7) : path to executable is /usr/local/sbin/haproxy
[ALERT]    (7) : config : [/usr/local/etc/haproxy/haproxy.cfg:23] : 'server rabbitmq_back/rabbit1' : could not resolve address 'rabbitmq-main.railway.internal'.
[ALERT]    (7) : config : Failed to initialize server(s) addr.

not sure what i'm missing here? is it somethign to do with how HA resolves the names ?

0 Replies

jaymart95PRO

10 months ago

148eb60b-cb64-411a-8789-fbfd534512b7


10 months ago

are you trying to expose the metrics endpoint for rabbitmq?


jaymart95PRO

10 months ago

no im tryna use this as a load balancer for 2 different rabbitMQ instances


10 months ago

HAProxy supports layer 4 load balancing?


jaymart95PRO

10 months ago

yes



10 months ago

oh cool


10 months ago

are the two rabbitmq services in the same project?


jaymart95PRO

10 months ago

yes


10 months ago

are those logs from the deploy logs?


jaymart95PRO

10 months ago

yeeea for HAProxy


10 months ago

is the haproxy service on the v2 runtime?


jaymart95PRO

10 months ago

no legacy


10 months ago

switch to v2


jaymart95PRO

10 months ago

try v2?


jaymart95PRO

10 months ago

brother


jaymart95PRO

10 months ago

they need to put you on payroll


jaymart95PRO

10 months ago

lmaooo


jaymart95PRO

10 months ago

thank you so much.


10 months ago

haha i know this because i read the changelogs 😉


jaymart95PRO

10 months ago

true true. thanks a bunch


10 months ago

no problem!


unable to point HAProxy to RabbitMQ services - Railway Help Station