Commit Graph

131 Commits

Author SHA1 Message Date
David Wilson 8ab11f415f ansible: better support for diagnosing hangs
* Always enable the faulthandler module in the top-level process if it
  is available.
* Make MITOGEN_DUMP_THREAD_STACKS interval configurable, to better
  handle larger runs.
* Add docs subsection on diagnosing hangs.

Conflicts:
	ansible_mitogen/process.py
2018-09-08 20:53:11 +01:00
David Wilson 7458dfae85 ansible: avoid roundtrip for small file transfers.
Calls to connect.put_file() where the file is sufficiently small enough
to fit in a single RPC proceed without waiting for an RPC response. If
the write fails the target context will log an exception, and any
subsequent step depending on the written file will fail.

I verified every built-in action plugin for file transfer calls, and
they all depend on the transferred file in the following step, so this
should be safe.

Reduces template/copy actions to 2-RTT, loop-20-templates.yml runtime
reduced from 30 seconds to 10 seconds over a 250ms link compared to
v0.2.2, and from 123 seconds compared to vanilla with pipelining
enabled.
2018-08-20 15:18:03 +01:00
David Wilson bc682ce5a0 docs: update supported versions. 2018-08-19 20:20:29 +01:00
David Wilson 77b68f9b9d issue #321: docs fixes 2018-08-19 19:32:38 +01:00
David Wilson ac9b84d237 issue #321: 2.4+ compatibility fixes, disable test on Vanilla. 2018-08-19 19:26:54 +01:00
David Wilson f24f02ba06 issue #321: take remote_tmp and system_tmpdirs into account.
Can't simply ignore these settings as some users may have weird noexec
filesystems.
2018-08-19 18:50:53 +01:00
David Wilson a2686b1a2c issue #321: simplify temp directory handling. 2018-08-19 16:00:35 +01:00
David Wilson a6995a5288 issue #338: refactor env handling into class and fix tests. 2018-08-18 16:43:59 +01:00
David Wilson 81c8156965 Support LXD; closes #339. 2018-08-18 16:43:59 +01:00
David Wilson 898c06f1b9 docs: host demo on Vimeo. 2018-08-05 10:51:26 +01:00
David Wilson 9b2417e62d docs: add funny testimonial 2018-07-27 13:37:29 -07:00
David Wilson 6813443d09 docs: minor tweaks. 2018-07-26 23:36:41 -07:00
David Wilson 3138982ef4 docs: link mitogen-announce mailing list. 2018-07-25 22:11:43 -07:00
David Wilson a29a883dfc issue #311: docs: comment out Ansible 2.6 for now. 2018-07-25 14:03:26 -07:00
David Wilson 11c73baa9c docs: update Changelog. 2018-07-23 14:01:27 -07:00
David Wilson 6b79db2ecd docs: document local connection process model difference. 2018-07-22 16:25:06 -07:00
Daniel Quackenbush 3297552f65 Updated readme with build status, updated docs 2018-07-21 11:30:41 -04:00
David Wilson 8609fa5f44 docs: link to PyPI release, not GitHub archive URL.
Now download counts are visible via PSF BigQuery.
2018-07-14 05:50:27 +01:00
David Wilson 184104ce92 issue #303: add doas to the docs 2018-07-13 15:08:51 +01:00
David Wilson f20274ea18 docs: fix lock icon. 2018-07-12 21:36:33 +01:00
David Wilson e609d1b1fb docs: glaring ancient typo. 2018-07-12 05:44:24 +01:00
David Wilson 68cf84762f docs: mention synchronize/delegation issue. 2018-07-09 04:21:19 +01:00
David Wilson 7cd89f0290 docs: add 'will it work' intuition. 2018-07-09 04:07:44 +01:00
David Wilson f5b9f5ff59 docs: add 'raw' to 0.2 in-scope 2018-07-09 03:40:17 +01:00
David Wilson 8c2231cefb docs: link changelog into Ansible install procedure 2018-07-09 03:13:38 +01:00
David Wilson 43b55bd8fd docs: remove another warning label. 2018-07-09 03:05:28 +01:00
David Wilson d493a3d7ca Merge branch 'python3'
Hooray \o/

Remaining issues:

- Two unit test races that appear related to our broken zombie process
  reaping, doesn't impact Ansible.

Closes #16.
2018-07-08 22:17:28 +01:00
David Wilson 0461738ca6 docs: small reference fixes. 2018-07-08 22:00:00 +01:00
David Wilson 18c9cd2365 docs: update supported Python version list. 2018-07-07 14:55:47 +01:00
David Wilson 6632f682da docs: change install docs to point at stable branch. 2018-07-06 00:08:10 +01:00
David Wilson 04b65020ac issue #278: ansible: support mitogen_ssh_debug_level variable. 2018-06-22 16:32:24 +01:00
David Wilson 3994f1b30a ansible: implment async job time limit. 2018-06-10 02:28:49 +01:00
David Wilson d2accbce53 docs: remove more Ansible limitations 2018-06-10 01:34:15 +01:00
David Wilson daa9cfd0a8 ansible: MITOGEN_DUMP_THREAD_STACKS for mux process too 2018-05-29 18:10:08 +01:00
David Wilson aba6cb302a docs: add example sudoers rule
hat tip @seuf :)
2018-05-28 23:33:21 +01:00
David Wilson 70376d861a issue #217: docs: remove limitation 2018-05-15 01:57:09 +01:00
David Wilson 4cd9e09130 issue #249: docs: remove limitation 2018-05-15 00:22:02 +01:00
David Wilson 48535cc661 docs: more accurate bullet. 2018-05-08 04:28:39 +01:00
David Wilson d148e3db4e docs: move installation section above demo 2018-05-08 04:24:33 +01:00
David Wilson 3058efc80f docs: more updates.
- accurate description of Ansible timeouts
- rough detach() sketch
2018-05-03 17:37:24 +01:00
David Wilson 78c401ba4d ansible: support su become method. 2018-05-02 03:49:44 +01:00
David Wilson 187e3a3fc1 ansible: support 2.3 too. 2018-04-30 19:15:51 +01:00
David Wilson 58eb9828b0 docs: remove limitation. 2018-04-29 19:35:43 +01:00
David Wilson b0309b539c ansible: disable interpreter recycling for connections.
Must explicitly specify enable_lru=True in ContextService.get() to
trigger recycling.
2018-04-29 09:53:16 +01:00
David Wilson ec22fee7a7 docs: more ansible updates 2018-04-29 09:37:49 +01:00
David Wilson 79fd35092b docs: more links 2018-04-29 04:00:11 +01:00
David Wilson 65e6a44fe7 docs: add links. 2018-04-29 02:31:32 +01:00
David Wilson 29f6c46e97 docs: add file transfer safety section. 2018-04-29 02:14:29 +01:00
David Wilson bba2a42e44 ansible: add mitogen_sudo method, split out connection subclasses.
Slowly moving towards real implementations in those files.
2018-04-29 01:45:52 +01:00
David Wilson 7c5bbc5168 setns: support changing user.
To match existing third party plugin.
2018-04-29 00:38:53 +01:00