RabbitMQ container is stopped by macOS suspension and wake-up #10221
Replies: 2 comments
-
You haven't provided any logs or details. What "dies" in your setup is not RabbitMQ, it is a container, and that can happen for many different reasons. The only relatively unusual thing about OS suspension's effects on RabbitMQ is that when time suddenly jumps (this is the case when the OS is waken up), the Erlang runtime used to fire a lot of timers in rapid succession. This means a CPU usage spike. Docker or something else can potentially kill a container based on its CPU usage (that's a guess). Anecdotal evidence suggests that this is a lot less of a problem with recent versions of Erlang. |
Beta Was this translation helpful? Give feedback.
-
I cannot reproduce. Here are the steps:
In fact, on many occasions I have left nodes up and running in the foreground for several hours or even a couple of days. These nodes never terminated. Maybe Docker image maintainers would know what relevant logs can help. The image configures RabbitMQ to log into standard output. Whether |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I have this docker-compose file below. Mongo and Redis always survive when I close my Macbook and reopen. But rabbit always dies. I am not sure if this is intended or not, but it's certainly not convenient for devs that end-up running things locally quite often. Is there a good reason why it always dies? Can't do a suspend? Obviously I don't know all the goings-on when the machine suspends, but I am curious.
any feedback appreciated, but seems like unintended behavior.
Reproduction steps
mongo --> alive
redis --> alive
rabbit --> dead
Expected behavior
expect rabbit to survive
Additional context
n/a
Beta Was this translation helpful? Give feedback.
All reactions