Hello ! First time here :slightly_smiling_face: I'...
# general
t
Hello ! First time here 🙂 I'm trying
custodian
and
c7n-org
to update tags on ~150 AWS accounts. Running from my machine (Mac), I noticed that running the command over and over (to go through the 150 accounts), my machine starts to crawl. At some point I can't make any network connection unless I stop the loop and wait a few minutes. It seems that network connections might be left open, has anyone experienced this issue with custodian ?
I'm using dryrun and this may have an impact as I read the doc more deeply
s
You can set the environment variable
C7N_ORG_PARALLEL
to specify the number of parallel workers in c7n. It defaults to cpu count * 4, but that may result in too many api calls depending on the resource types you’re working with, leading to rate limiting, which leads to retrying and ultimately taking longer. It also helps to make sure you’re using a recent version of python. I forget which version Apple is currently bundling, but they have a habit of only including REALLY old versions of python. The easiest way I’ve found is to use pyenv (https://github.com/pyenv/pyenv) to install newer versions on a mac.
t
Thanks for all the hints !