meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.17k stars 2.47k forks source link

Options to block startup unless RabbitMQ Transport / Event Handler are connected #3381

Open chriswiggins opened 4 months ago

chriswiggins commented 4 months ago

We have been doing some failure scenario planning inside our staging Kubernetes environment and have noticed that if our Janus instances come up before RabbitMQ, they will happily start even though an error is logged to the console.

These changes bring in new options to both RabbitMQ locations: block_startup_until_connected. Setting this to true in either or both of the respective configuration files will cause the server to infinitely loop until RabbitMQ becomes available.

As a side note - it doesn't appear we can get these Transport / Event plugins status information externally. Is that something thats possible?

lminiero commented 3 months ago

@chriswiggins any update on my comments?

chriswiggins commented 3 months ago

@chriswiggins any update on my comments?

Apologies I have been away on vacation. Will have a look next week 😀

lminiero commented 3 weeks ago

@chriswiggins ping :grin:

chriswiggins commented 1 week ago

Hey @lminiero - apologies I keep doing little bits and pieces on this and then getting pulled to other tasks.

Will endeavour to get this done this week