News for hackers. Stuff that matters.
Re:Cyber is a new language for fast, efficient, and concurre... by 0cf8612b2e1e on Saturday January 28, 2023 @12:36AM (#34555477)
Is Ansible slow because of Python? I had always assumed the performance was due to excessive network roundtrips.
Re:Cyber is a new language for fast, efficient, and concurre... by JediPig on Saturday January 28, 2023 @01:15AM (#34555648)
bingo. there is a flag you can set that eliminates most , if not all. It's not slow cause it's written in 'python'. It's slow because of safety.
Re:Cyber is a new language for fast, efficient, and concurre... by Octabrain on Saturday January 28, 2023 @03:41AM (#34556178)
From my experience, it is not always just the network. Ansible can be slow in operations such as copying files between directories on the remote target. I suffered from this a couple of years ago and the solution I implemented was to delegate the copy operation to a bash script and leave Ansible to just take care of uploading that script and run it passing the configured parameters.

Anyways, if the network is a problem I strongly recommend to have a look to "Ansible pull".

Re:Cyber is a new language for fast, efficient, and concurre... by thyrsus on Monday January 30, 2023 @07:36PM (#34589054)
We're using ansible-pull. Aside from occasional access to NFS mounts, there's a minimum of network traffic. E.g., the git retrieval is usually: I've got version x. That's current? Thanks, we're done. The time is spent executing Ansible modules on the local system. 200+ tasks ok, 200+ tasks skipped, maybe 10 changed.