Retry loop in ContainerReconciler exhausts system RAM #6548
Labels
area-orchestrator
needs-author-action
An issue or pull request that requires more info or actions from the author.
untriaged
New issue has not been triaged
Is there an existing issue for this?
Describe the bug
When the container runtime is not healthy, Aspire retries forever with no delay, eventually exhausting system memory.
We recently upgraded to Aspire 9.0 rc1 and started using its ability to manage a Docker container to run Azurite. This morning I tried to run my .net app, but I forgot to pass the run flag that would also start the Azurite container. During the boot process, Aspire continually retried waiting for the container to be healthy, spewing logs to stdout so fast that eventually my Terminal died once it exhausted system memory. The process was using 29GB when I terminated it, nearly all of that consisting of retry log messages (see screenshot)
Expected Behavior
When retrying, it should backoff and/or eventually give up. It should not run a hot loop with no delay.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
Anything else?
Aspire 9.0 RC1
9.0.0-rc.1.24511.1
The text was updated successfully, but these errors were encountered: