Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Prefetch subnets info in one call - quite big performance boost #146

Conversation

stepanstipl
Copy link

This helped me with issue #144 when when i was hitting Request limit exceeded error after couple of minutes (our env is quite big - 1k+ instances in given region). Now it seems to work as expected and finish in about 10 seconds in this environment (I was trying just to list resources with puppet resource ec2_instance command).

This should be properly tested though as I don't have environment to do so. Currently 3 VCR test will fail (1 of those used to fail for me even before my change), which I guess is expected, and I'm unable to run beaker tests currently (don't have AWS environment ready for it).

@garethr
Copy link
Contributor

garethr commented Apr 9, 2015

@stepanstipl thanks for this example, that's perfect. I've got a pretty good test environment setup for this so I'm more than happy to fix up the tests and the like. I'm travelling the next few weeks but I'll update this issue when I get time to implement this. Thanks again.

@garethr
Copy link
Contributor

garethr commented May 14, 2015

Hi @stepanstipl. Just a quick update. I've taken this pattern and run with it in #102, which also contains a number of other improvements. I'll close this PR in favour of that, but thanks again for testing this out and suggesting the change.

@garethr garethr closed this May 14, 2015
@stepanstipl
Copy link
Author

Cool, great, I'll have a look and give #102 a go and see how it looks for us, cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants