๊ฐœ๋ฐœ.log/rabbitMQ

[RabbitMQ] TCP connection succeeded but Erlang distribution failed / Erlang ์˜ค๋ฅ˜ / Rabbitmq + Erlang ํ†ต์‹  ์˜ค๋ฅ˜

๊ฐœ๋ฐœํ•˜๋Š” ์ฃผ๋””์”จ 2023. 4. 18. 15:04

rabbitMq๋ฅผ ์„ค์น˜ํ•˜๊ณ  ๊ธฐ๋ณธ์œผ๋กœ ์ƒ์„ฑ๋˜๋Š” ๋…ธ๋“œ๋ฅผ ์‚ฌ์šฉํ•ด localhost๋กœ manager UI๋ฅผ ํ™•์ธํ•˜๋Š”๊ฒŒ ๋ชฉํ‘œ์˜€๋‹ค. ํ•˜์ง€๋งŒ ์ด๊ฒŒ ์ด๋ ‡๊ฒŒ ๋งŽ์€ ์˜ค๋ฅ˜๋ฅผ ๋งˆ์ฃผํ•  ์ผ์ธ๊ฐ€ ์‹ถ์—ˆ๋‹ค. 

 

 

TCP connection succeeded but Erlang distribution failed

์ด ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๋Š” Erlang ๋ถ„์‚ฐ ํ”„๋กœํ† ์ฝœ์„ ์‚ฌ์šฉํ•˜์—ฌ RabbitMQ์™€ ํ†ต์‹ ํ•  ๋•Œ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค. ์ด ์—๋Ÿฌ๋Š” TCP ์—ฐ๊ฒฐ์ด ์„ฑ๊ณตํ–ˆ์ง€๋งŒ, Erlang ๋ถ„์‚ฐ ํ”„๋กœํ† ์ฝœ์— ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•œ๋‹ค. 

 

์ด ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ์ด์œ ๋Š” ๋‹ค์–‘ํ•˜๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ๋…ธ๋“œ ์ด๋ฆ„์ด ์ž˜๋ชป ์„ค์ •๋˜์—ˆ๊ฑฐ๋‚˜, ์„œ๋กœ ๋‹ค๋ฅธ Erlang ๋ฒ„์ „์ด ์‚ฌ์šฉ๋˜์—ˆ์„ ๋•Œ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค. ๋˜๋Š” ๋ฐฉํ™”๋ฒฝ ๋“ฑ ๋‹ค๋ฅธ ๋„คํŠธ์›Œํฌ ๊ตฌ์„ฑ ์š”์†Œ๋กœ ์ธํ•ด ๋ฐœ์ƒํ•  ์ˆ˜๋„ ์žˆ๋‹ค. ํ•˜์ง€๋งŒ ๋‚˜๋Š” ๋…ธ๋“œ๋ฅผ ์ถ”๊ฐ€์ ์œผ๋กœ ์„ค์ •ํ•˜์ง€ ์•Š์•˜๊ธฐ ๋•Œ๋ฌธ์— ๋…ธ๋“œ์— ๋Œ€ํ•œ ๋ฌธ์ œ๋Š” ์•„๋‹ˆ๋ผ๊ณ  ํŒ๋‹จํ–ˆ๊ณ  ์˜์‹ฌํ•  ์ˆ˜ ์žˆ๋Š” ๋ถ€๋ถ„์€ Erlang ๋ฒ„์ „์ด ๋ฌธ์ œ๊ฐ€ ๋œ ๊ฒƒ ์ด๋ผ๊ณ  ์˜ˆ์ƒํ•˜์˜€๋‹ค. ์šฐ์„  ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์‚ฌํ•ญ์„ ํ™•์ธํ•ด๋ณด์•˜๋‹ค.

  • RabbitMQ ๋…ธ๋“œ ์ด๋ฆ„์ด ์˜ฌ๋ฐ”๋ฅธ์ง€ ํ™•์ธ
  • ๋ชจ๋“  ๋…ธ๋“œ์—์„œ ๋™์ผํ•œ Erlang ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š”์ง€ ํ™•์ธ
  • ๋ฐฉํ™”๋ฒฝ ๋˜๋Š” ๋‹ค๋ฅธ ๋„คํŠธ์›Œํฌ ๊ตฌ์„ฑ ์š”์†Œ๊ฐ€ ๋ฌธ์ œ๋ฅผ ์ผ์œผํ‚ค์ง€ ์•Š๋„๋ก ์„ค์ •์„ ํ™•์ธ
  • RabbitMQ ๋กœ๊ทธ ํŒŒ์ผ์„ ํ™•์ธ
  • RabbitMQ ์ปค๋ฎค๋‹ˆํ‹ฐ ๋˜๋Š” ์ง€์›ํŒ€์— ๋ฌธ์˜

 

๋‚˜๋Š” Erlang ๋ฒ„์ „์„ ์ธ์‹ํ•˜์ง€ ๋ชปํ•ด์„œ ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ์˜€๋‹ค. rabbitMq ์‹คํ–‰์„ ์œ„ํ•ด์„œ๋Š” ์ตœ์†Œ, ์ตœ๋Œ€ Erlang ๋ฒ„์ „์ด ์žˆ๋Š”๋ฐ 3.9.18 ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜๋ฉด์„œ Erlang์€ 22.x ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋˜ ๊ฒƒ์ด๋‹ค. rabbitMq์— ๋งž๋Š” Erlang๋ฒ„์ „์„ ๋‹ค์‹œ ์žฌ์„ค์น˜ํ•˜๋‹ˆ ์ •์ƒ์ ์œผ๋กœ ๋ชจ๋“ ์˜ค๋ฅ˜๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ๋‹ค. 

 

 

ํ˜น์‹œ๋ผ๋„ ์•„์ง ํ•ด๊ฒฐ๋˜์ง€ ์•Š์•˜๋‹ค๋ฉด ์ง€๊ธˆ ์„ค์น˜๋œ Erlang ๋ฒ„์ „๊ณผ RabbitMq ๋ฒ„์ „์ด ๋งž๋Š”์ง€ ์•„๋ž˜ ํ™ˆํŽ˜์ด์ง€๋ฅผ ํ†ตํ•ด ํ™•์ธํ•ด๋ณด๊ธธ ๊ถŒ์žฅํ•œ๋‹ค.

 

* RabbitMQ Erlang Version Requirements : https://www.rabbitmq.com/which-erlang.html

 

RabbitMQ Erlang Version Requirements — RabbitMQ

RabbitMQ Erlang Version Requirements This guide covers Erlang/OTP version requirements, Erlang version support policy, a RabbitMQ/Erlang compatibility matrix, version-specific notes and ways of provisioning recent Erlang/OTP releases. RabbitMQ supports up

www.rabbitmq.com