Commit Graph

811 Commits (master)

Author SHA1 Message Date
David Wilson 77f6b31e5c docs: more images. 6 years ago
David Wilson 56b563161b docs: single-threaded connection is the most important limitation 6 years ago
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
6 years ago
David Wilson dd9d3494e0 docs: small ansible.rst updates 6 years ago
David Wilson ce6648da51 docs: mention CPU usage reduction 6 years ago
David Wilson 270db025c0 docs: fix up Ansible install docs. 6 years ago
David Wilson e9060b3b7f docs: more modest and accurate numbers for Ansible 6 years ago
David Wilson b221eaaa10 ansible: log call timings 6 years ago
David Wilson a817f5e9e8 docs: more marketing, add lots of drama bold. 6 years ago
David Wilson 5933723d70 docs: a little more marketing 6 years ago
David Wilson de1b3602e5 docs: tidy up ansible.rst 6 years ago
David Wilson 52da0d882e ansible: add a new limitation 6 years ago
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.
6 years ago
David Wilson 91116810a1 ansible: delete utils.py and promote cast() to mitogen.utils 6 years ago
David Wilson 18eaf14dca ansible: migrate logging variables into utils. 6 years ago
David Wilson 10c2de2845 examples: rename playbooks for clarity. 6 years ago
David Wilson ea126bb7e8 docs: add stats tracking 6 years ago
David Wilson 875ee29d4f docs: initial Ansible extension docs. 6 years ago
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.
6 years ago
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%).
6 years ago
David Wilson 71a6b9e32a master: Select.all() sugar 6 years ago
David Wilson ac4a42a43e docs: fix Select() example for new style API. 6 years ago
Alex Willmer a69d9650ad Fix indentation of Router.route anchor 6 years ago
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.
6 years ago
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.
6 years ago
David Wilson e63e9d299e docs: add Message documentation 6 years ago
David Wilson dd088908df select: clean up API. 6 years ago
David Wilson a39cd44bf2 core: add auth_id field. 6 years ago
David Wilson 07d4d799f1 Add mitogen.main() decorator mainly for docs and demo use. 6 years ago
David Wilson 09eb3fd9ba utils: support log_to_file(usec=True) 6 years ago
David Wilson 592ebd59c2 docs: reorder sections 6 years ago
David Wilson dee856f6f4 docs: remove obsolete warning 6 years ago
David Wilson b941bce964 docs: sphinx-autobuild default target. 6 years ago
David Wilson 4d9d21c808 docs: fix typo 6 years ago
David Wilson 4a6d55ced6 docs: vastly simplify importer concurrency docs 6 years ago
David Wilson 984b39180e importer: Beginnings of howitworks section. 6 years ago
David Wilson b580ada89f Tidy up and correct the new example 6 years ago
David Wilson eb2aef866b Add shell replacement example. 6 years ago
David Wilson 641498e7f6 docs: Fix function name. 6 years ago
David Wilson f1f36cec35 Simplify the API, make Broker optional and auto-shutdown on main thread exit. 6 years ago
Alex Willmer 3831ac360f Replace all calls to file() with open()
Although these are synonyms in Python 2.x, when using MyPy to typecheck
code use of file() causes spurious errors.

This commit also serves as one small step to Python 3.x compatibility,
since 3.x removes the file() builtin.
6 years ago
David Wilson 038ab04908 docs: convert paragraph to footnote. 6 years ago
David Wilson e3d2c8d649 issue #49: update howitworks.rst for command line change 6 years ago
David Wilson 58102c8179 docs: waiting on multiple calls 6 years ago
David Wilson b1ad04330b docs: move Router.route() into Sphinx. 6 years ago
David Wilson cf0668b2b1 docs: Add warning to preloading section. 6 years ago
David Wilson fb759f7c16 docs: move Broker docstrings into Sphinx. 6 years ago
David Wilson ac7cada323 docs: more getting started guide 6 years ago
David Wilson ffa063cc01 docs: annother barriage of cross-reference fixes. 6 years ago
David Wilson 9372d2c3de docs: Fix up tons of references, document trust chain 6 years ago
David Wilson 051285437f importer: module preloading docs 6 years ago
David Wilson b3bd075d37 docs: getting started 6 years ago
David Wilson 792e789908 More. 6 years ago
David Wilson c15d227da4 docs: way more appropriate image 6 years ago
David Wilson b94e7b3678 docs: more getting started 6 years ago
David Wilson 709b38c36e docs: Getting started tidyups 6 years ago
David Wilson dcc45bc7de docs: Get started on Getting Started 6 years ago
David Wilson 0299f86bc9 docs: fix reference to with: 6 years ago
David Wilson c9daa2ff30 docs: move fakessh docs into Sphinx. 6 years ago
David Wilson 6a10ab605e docs: move mitogen.utils docs to Sphinx. 6 years ago
David Wilson 270b242ec5 docs: fix decorator types. 6 years ago
David Wilson ec66152e37 docs: better io_op doc, move Side docs to Sphinx. 6 years ago
David Wilson 0767abf26f docs: move BasicStream docs into Sphinx. 6 years ago
David Wilson b7a9aa46cf core: More robust shutdown
Now there is a separate SHUTDOWN message that relies only on being
received by the broker thread, the main thread can be hung horribly and
the process will still eventually receive a SIGTERM.
6 years ago
David Wilson 79dd00db5a master: hack to avoid executing __main__. 6 years ago
David Wilson 416ab90e02 docs: Fix index generation everywhere. 6 years ago
David Wilson 976c643f21 docs: remove note, unpickling can no longer trigger module loads 6 years ago
David Wilson decc9a900c docs: s/random/pseudorandom/ 6 years ago
David Wilson 83f8f1863e docs: fix pickler docs, begin relabelling master/slave->parent/child 6 years ago
David Wilson 4327baabfa docs: remove final references to call_with_deadline(). 6 years ago
David Wilson dd69b8feeb docs: with_context element is replaced by a decorator. 6 years ago
David Wilson 12fe884f1a Reference Select 6 years ago
David Wilson a81f804e92 Accidentally hecked in incomplete paragraph. 6 years ago
David Wilson 83e3e1b82a Typo. 6 years ago
David Wilson e9af841e60 docs: fix :return: syntax. 6 years ago
David Wilson f1d82c7284 More API documentation. 6 years ago
David Wilson 9d2a11e70f Fix function reference. 6 years ago
David Wilson 5772e06368 Typo. 6 years ago
David Wilson b7f95e558f Better document Router API and constructors. 6 years ago
David Wilson 3eb60d777a Add mitogen.parent_ids to docs. 6 years ago
David Wilson 0c573d0e47 Tidy up select examples even more. 6 years ago
David Wilson e624295d63 Document channel class 6 years ago
David Wilson c4d9f124c6 Document Sender and Receiver classes. 6 years ago
David Wilson 33643222de docs: Add spacing between list items in body text. 6 years ago
David Wilson 265d9f0293 Tidy up select docs. 6 years ago
David Wilson 112f76fe89 More concise text. 6 years ago
David Wilson 19869da087 issue #20: Return type fix. 6 years ago
David Wilson 0565784164 Package rename cleanup. 6 years ago
David Wilson f869e088f8 issue #20: tests and fixes for mitogen.master.Select(). 6 years ago
David Wilson e3d967ebeb issue #20: initial implementation of mitogen.master.Select(). 6 years ago
David Wilson abfa85d7da Remove set from permitted types. 6 years ago
David Wilson 9c4bf37cfc Remove final vestiges of context.key. 6 years ago
David Wilson 0ff65c9780 docs: Use sphinx-programoutput plugin for preamble_size.py 6 years ago
David Wilson 2af1830323 Update preamble_size output. 6 years ago
David Wilson 04ea5306e9 Document a bunch of mitogen.master and move more docstrings into Sphinx. 6 years ago
David Wilson 092bbef0b3 Reorder table of contents. 6 years ago
David Wilson caa1fde4fb Add serialization rules section. 6 years ago
David Wilson 4720eb1c55 core: add ALLOCATE_ID message for fakessh. 6 years ago
David Wilson 6f2d514813 Import unused images. 6 years ago
David Wilson b809d43865 Move more docstrings out of core.py. 6 years ago
David Wilson 4f50707b82 core: support takes_econtext and takes_router decorators. 6 years ago
David Wilson 025954af32 Typo. 6 years ago
David Wilson 6b9e46ecd6 Add subheading to describe each import hack. 6 years ago
David Wilson 36f0584087 Link to six bug. 6 years ago
David Wilson 6ff2a49f10 Pad out shame.rst. 6 years ago
David Wilson fa427d83c8 Tidy. 6 years ago
David Wilson 38a9482860 Add hacks to allow Mock to be imported. 6 years ago
David Wilson 1f99dcb435 fix unbelievably dumb variable shadowing 6 years ago
David Wilson 25e4724bac A few more mitogen.slave/master changes 6 years ago
David Wilson 708b742a9c Mention git. 6 years ago
David Wilson e7ff6259a3 Initial commit. 6 years ago