Long running DB init

25 views
Skip to first unread message

Florian Lohoff

unread,
Apr 4, 2016, 9:05:21 AM4/4/16
to Ansible Project

Hi,
I am going my first Ansible steps (Doing cfengine for 10+ Years).

So far i am having no huge issues. I am playing with setting up
postgres databases etc. Now i was thinking of initializing them
with content which would take hours to days to import data.

How do others implement tasks like this? I have read about the async
polling but was rather thinking of deploying an import script
and just starting that.

Flo
--
Florian Lohoff f...@zz.de
We need to self-defend - GnuPG/PGP enable your email today!
signature.asc

david.hol...@cru.org

unread,
Apr 4, 2016, 12:04:25 PM4/4/16
to Ansible Project
We use async/polling for our "long" running tasks (1-4 hrs) which are mainly postgres or oracle database restores.  Not sure about tasks that take days, you may want to look into the "fire and forget" mode by setting poll=0.  Just make sure to set async high enough to allow tasks to run that long.  Ansible seems to do a really good job of ensuring those long running tasks keep running.

- David
Reply all
Reply to author
Forward
0 new messages