Commit Graph

125 Commits

Author SHA1 Message Date
David Wilson 712e5dfca1 docs: fix image labels 2018-03-19 21:58:32 +05:45
David Wilson c2793b7102 docs: import but don't link compared.rst 2018-03-19 21:58:32 +05:45
David Wilson 2ecc6f43a4 docs: Import, but do not yet link signals.rst 2018-03-19 21:58:32 +05:45
David Wilson 7cf2edc3a8 ansible: Support many more common playbook variables. 2018-03-19 21:58:32 +05:45
David Wilson ba644e184d docs: Split up limitations list, add warning 2018-03-19 21:58:31 +05:45
David Wilson 3183dd4147 ansible: initial support for async jobs
Running in a thread to begin with, but this must change.
2018-03-19 21:58:31 +05:45
David Wilson e913c11e50 docs: new Ansible limitation 2018-03-19 21:58:31 +05:45
David Wilson 860a635500 docs: remove delegate_to limitation 2018-03-19 21:58:31 +05:45
David Wilson dfdb7ab128 docs: more Ansible 2018-03-19 21:58:31 +05:45
David Wilson cf7f8ff490 docs: document one more Ansible limitation 2018-03-19 21:58:31 +05:45
David Wilson 7179ca163b docs: Replace shifty hacker dude with plebey skater dude
Farewell, shifty hacker dude! May your 0days be many and your
indictments be few
2018-03-19 21:58:31 +05:45
David Wilson 0c056ddbe2 docs: new Ansible limitation, add new heading
Some differences are eventually likely to become permanent, because the
existing behaviour is unforgiveable.
2018-03-19 21:58:31 +05:45
David Wilson 14251539cd docs: Docker typo. 2018-03-19 21:58:31 +05:45
David Wilson 5036a9448f Add Docker method. 2018-03-19 21:58:31 +05:45
David Wilson 77f6b31e5c docs: more images. 2018-03-19 21:58:30 +05:45
David Wilson 56b563161b docs: single-threaded connection is the most important limitation 2018-03-19 21:58:30 +05:45
David Wilson c1bea0dd49 docs: store blog images for fear of laptop crash
There is only so much trackpad-driven yEd work one man can handle
2018-03-19 21:58:30 +05:45
David Wilson dd9d3494e0 docs: small ansible.rst updates 2018-03-19 21:58:30 +05:45
David Wilson ce6648da51 docs: mention CPU usage reduction 2018-03-19 21:58:30 +05:45
David Wilson 270db025c0 docs: fix up Ansible install docs. 2018-03-19 21:58:30 +05:45
David Wilson e9060b3b7f docs: more modest and accurate numbers for Ansible 2018-03-19 21:58:30 +05:45
David Wilson b221eaaa10 ansible: log call timings 2018-03-19 21:58:30 +05:45
David Wilson a817f5e9e8 docs: more marketing, add lots of drama bold. 2018-03-19 21:58:30 +05:45
David Wilson 5933723d70 docs: a little more marketing 2018-03-19 21:58:30 +05:45
David Wilson de1b3602e5 docs: tidy up ansible.rst 2018-03-19 21:58:30 +05:45
David Wilson 52da0d882e ansible: add a new limitation 2018-03-19 21:58:30 +05:45
David Wilson 14b5c4d504 docs: remove fixed Ansible limitation
The solution was that Mitogen's loader should emulate the behaviour of
ansible.executor.module_common, which restricts dependency scanning to
the ansible.module_utils namespace.
2018-03-19 21:58:30 +05:45
David Wilson 91116810a1 ansible: delete utils.py and promote cast() to mitogen.utils 2018-03-19 21:58:30 +05:45
David Wilson 18eaf14dca ansible: migrate logging variables into utils. 2018-03-19 21:58:30 +05:45
David Wilson 10c2de2845 examples: rename playbooks for clarity. 2018-03-19 21:58:30 +05:45
David Wilson ea126bb7e8 docs: add stats tracking 2018-03-19 21:58:30 +05:45
David Wilson 875ee29d4f docs: initial Ansible extension docs. 2018-03-19 21:58:29 +05:45
David Wilson bdd8648bae ssh: enable compression by default
Using the same test as in 7af97c0365,
transmitted wire bytes drops from 135,531 to 133,071 (-1.81%), while
received drops from 21,073 to 14,775 (-30%).

Combined, both changes shave 13,914 bytes (-8.6%) off aggregate
bandwidth usage.

Make it configurable as compression hurts in some scenarios.
2018-03-19 21:58:29 +05:45
David Wilson 4d940f08ae importer: drop redundant prefix from pkg_present
For the 52 submodules of ansible.modules.system, this produced a 1602
byte pkg_present list. After stripping it becomes 406 bytes, and the
entire LOAD_MODULE size drops from 1988 bytes to 792 bytes (-60%).

For the 68 submodules of ansible.module_utils, 1902 bytes pkg_present
becomes 474 bytes (-75%), and LOAD_MODULE size drops from 2867 bytes to
1439 bytes (-49%).

In a simple test running Ansible's "setup" module followed by its "apt"
module, wire bytes sent drops from 140,357 to 135,531 (-3.4%).
2018-03-19 21:58:29 +05:45
David Wilson 71a6b9e32a master: Select.all() sugar 2018-03-19 21:58:29 +05:45
David Wilson ac4a42a43e docs: fix Select() example for new style API. 2018-03-19 21:58:29 +05:45
Alex Willmer a69d9650ad Fix indentation of Router.route anchor 2018-03-19 21:58:29 +05:45
Alex Willmer eb1ad66469 docs: Fix out of date get_data() snippets
As of adc8fe3aed Receiver objects do not
have a get_data() method and Receiver.get() does not unpickle the
message.
2018-03-19 21:58:29 +05:45
David Wilson 20afa5b90c Latch v2: combined queue + one self-pipe-per-thread
Turns out it is far too easy to burn through available file descriptors,
so try something else: self-pipes are per thread, and only temporarily
associated with a Lack that wishes to sleep.

Reduce pointless locking by giving Latch its own queue, and removing
Queue.Queue() use in some places.

Temporarily undo merging of of Waker and Latch, let's do this one step
at a time.
2018-03-19 21:58:29 +05:45
David Wilson e63e9d299e docs: add Message documentation 2018-03-19 21:58:28 +05:45
David Wilson dd088908df select: clean up API. 2018-03-19 21:58:28 +05:45
David Wilson a39cd44bf2 core: add auth_id field. 2018-03-19 21:58:28 +05:45
David Wilson 07d4d799f1 Add mitogen.main() decorator mainly for docs and demo use. 2018-03-19 21:58:28 +05:45
David Wilson 09eb3fd9ba utils: support log_to_file(usec=True) 2018-03-19 21:58:28 +05:45
David Wilson 592ebd59c2 docs: reorder sections 2018-03-19 21:58:28 +05:45
David Wilson dee856f6f4 docs: remove obsolete warning 2018-03-19 21:58:28 +05:45
David Wilson b941bce964 docs: sphinx-autobuild default target. 2018-03-19 21:58:28 +05:45
David Wilson 4d9d21c808 docs: fix typo 2018-03-19 21:58:28 +05:45
David Wilson 4a6d55ced6 docs: vastly simplify importer concurrency docs 2018-03-19 21:58:28 +05:45
David Wilson 984b39180e importer: Beginnings of howitworks section. 2018-03-19 21:58:28 +05:45