It's certainly possible to cache modules, the problem is that aside from requiring a writeable disk, it introduces intermediate persistent state, which is evil in any software design where it can otherwise be avoided, as it creates all kinds of coherency and management issues (of which you name one - limiting the size!), and greatly increases the number of generally difficult/impossible to test states the software may find itself in.
I'm not averse to adding it, but meanwhile there are more ripe performance hindrances to address beforehand. On Saturday, February 17, 2018 at 8:10:55 PM UTC+5:45, [email protected] wrote: > > Very interesting, just brought up > https://github.com/ansible/ansible/issues/36275 > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fansible%2Fansible%2Fissues%2F36275&sa=D&sntz=1&usg=AFQjCNEb274yzVyFuflk6C1MARLrzMcJmA> > . > > Mitogen (or basically any short-lived agent) seems like a feasible > approach to solve the problem, albeit sending python modules via ssh and > executing them in a long(er)-running process adds quite some complexity. > What's wrong with just caching python modules (or binaries) in a > size-limited temp folder? Using content-addressing should get rid of > possible versions conflicts and a tiny bit of disk or tmpfs space doesn't > seems like an unreasonable requirement. > > Am Freitag, 16. Februar 2018 15:02:49 UTC+1 schrieb David Wilson: >> >> Hi guys, >> >> I've been working occasionally on a new connection method for Ansible >> that drastically improves its efficiency, even when compared to pipelining >> and SSH multiplexing. The typical speedups can be impressive - in the 1.5x >> to 5x range, and some nice side effects exist such as system logs not being >> spammed while Ansible executes. >> >> http://mitogen.readthedocs.io/en/latest/ansible.html >> >> It takes all of 5 minutes over lunch to try out, and I'd love to get >> feedback on it from a variety of playbooks, if in no other form than bug >> reports. ;) >> > > https://github.com/dw/mitogen/issues/85 :) > > -- 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/550a1737-fc9a-40cc-9463-57531b8ac031%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
