Reconnection failed when shutdown rabbitMq on server and swith to another cluster rabbit server
See original GitHub issueHi, i would like to create a nodejs script with rascal api, which is listening a rabbit queue and automatiquely reconnect to a RabbitMq server after a Rabbit shutdown and switch to another server (cluster). please find below my code in attachment, based on the Rascal documentations. My configuration : rabbit server cluster of 2 servers rabbitMq 3.7.5 javascript nodejs with rascal api : 4.7.0
index.js.txt configRascal.js.txt
It runs fine when i start de project , but , when i test the shutdown i have this message :
[2020-03-11T17:13:28.941Z] DEBUG: psf-ms-rascal-1.0.0/15684 on SCU48652 (L:\psf-ms-rascal\src\amq\listeners\index.js:15 in module.exports): Rascal listener initialized --------------
[2020-03-11T17:13:28.943Z] DEBUG: psf-ms-rascal-1.0.0/15684 on SCU48652 (L:\psf-ms-rascal\src\amq\listeners\index.js:19 in module.exports): Rascal listener running fine --------------
events.js:183
throw er; // Unhandled 'error' event
Error: read ECONNRESET
at _errnoException (util.js:1024:11)
at TCP.onread (net.js:615:25)
[nodemon] app crashed - waiting for file changes before starting...
It’s normal.
But when i start rabbitmq again , it doesn’t reconnect automatiquely.
I dont know how i can fix simply this issue.
this issue could be similar as one of them , but the code looked is completely different. So i need your. Thanks a lot . Fbernardpro.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (5 by maintainers)
Top GitHub Comments
ok , thank’s again for advices. I let you know my progress. Regards. Francois
Hi Stephen, Sorry, I didn’t have any time to continue to investigate on rabbit my issue these time. I will continue later after our Containment in France. Complicate to work in an abnormal state. I will let you know in time.May be reopen ir close definitevely this issue. Thank you again.Regards.Francois. Envoyé depuis Yahoo Mail pour Android
Le mar., avr. 7, 2020 à 22:47, Stephen Cresswellnotifications@github.com a écrit :
Closed #82.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.