Hi All,

I have playbook which backups EC2 instances in AWS every night.
It runs on a EC2 instance (CentOS Linux release 7.2.1511 Core) hosted in 
AWS in the same regions as the backed-up instances.
Playbook uses only localhost (see below) and AWS modules. No SSH is used 
for accessing other instances.

- hosts: localhost
  connection: local
  gather_facts: no


All the backup jobs run fine from command line. They typically execute 
within 2 - 15  minutes.
All the logs are written to /var/log/ansible/ansible.log/ansible.log

The cron job looks likes this:

#Run backup job
00 20 * * * (pushd $ANSIBLE_DIR && ansible-playbook backup.yml -e @server.json 
-vv) >/dev/null 2>&1
...


and it runs fine almost all the time but sometimes, some random jobs just 
hang during the night and stay in RAM consuming both memory & CPU.
I checked the logs (both Ansible and /var/log/messages) and I could not 
find any evidences (error messages) regarding why this happens.

I'm using developer branch (2.2.0) but the same happens with the latest 
stable 2.0.2.0

Could you please advise how to troubleshoot such type of issues?
How can I find the task where it stucks?

Regards,
Constantin

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a0e218e9-7708-40e5-9ce2-5e42d7067266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to