Best Practices for Capturing Large Memory Crash Dumps from Windows Pods in AKS
Asked by
TechWizard42
I'm seeking advice on a Kubernetes issue. Specifically, how can I reliably capture and store full memory crash dumps (over 100GB) from a Windows pod in Azure Kubernetes Service (AKS) after it crashes? It's crucial that these dumps are saved without corruption and are accessible for download or inspection later. Here's some extra context: my cluster runs on AKS and I've tried using a premium Azure disk (az-disk), but it hasn't proven reliable for this use case. I'm also considering options like emptyDir, but I haven't tested that yet. Any insights would be really appreciated!
Answers
If you're having a lot of issues with the Windows containers, maybe explore lightweight alternatives in your architecture. Sometimes, the hassle isn't worth the payoff!
Reply to this answer
It sounds like you're dealing with quite the challenge! For those massive crash dumps, I'd suggest looking into a dedicated storage solution instead of just relying on a disk. Maybe Azure Blob Storage could be an option? It might help avoid corruption, and you could set up a process to handle retries if the uploads fail. Also, ensure the pod has proper permissions to write to the storage resource.
Reply to this answer
You should definitely refactor your application to handle the dumps better. If these large memory dumps are happening frequently, it might indicate an underlying issue that needs addressing. Instead of just collecting them, look into optimizing your application to reduce memory usage or prevent crashes altogether.
Reply to this answer
Can you share what youโre trying to debug? Knowing more about the application may help others provide tailored advice. Also, Windows containers can be tricky; what do you hate most about them?
Reply to this answer
Add your answer
Answers are reviewed before publication.
SillyGoose123: Good point about Azure Blob Storage! It's super scalable, which would be ideal for those big dumps. Plus, it could save you some headaches over time.
CloudySky55: I agree, using Blob Storage seems like a safer bet for handling those large files. Just make sure to keep an eye on access rights!