Interview Prep/Ansible/Vault, Performance and Execution Behaviour

`ERROR! A worker was found in a dead state`

AdvancedTroubleshootingVault, Performance and Execution Behaviour
Answer

Likely causes → A fork process died, usually because the Linux OOM killer stopped it. Typical triggers are high forks, huge registered results (a find across /, slurp of large files), large fact sets, or a container controller with a low memory limit.

Diagnose →

dmesg -T | grep -i -E 'killed process|oom'
kubectl describe pod <awx-job-pod> | grep -i OOMKilled     # AWX

Fix → Lower forks, avoid registering big outputs (filter on the target, use changed_when and short stdout), use gather_subset to cut facts, and give the controller or AWX job pod more memory.

Prevent → Set memory requests and limits for execution nodes based on measured peaks, and watch controller memory during large runs.

All Ansible questions Roadmap: Ansible

More on Vault, Performance and Execution Behaviour