Skip to content

Conversation

mandarjog
Copy link

2 commits.

  1. Adds max_checks and check_interval as top level options. This cuts down on synapse cpu usage.
    We run in under supervisord, so max_check = 10 would exit after those many loops.
  2. Adds a fancier selector with a @discovery['selector'] option.
    This option as actually eval'd with 'i' being the AWSInstance variable.

We are using this in production.

default for check_interval is 15 sec
default for max_checks is 0 (unlimited)
AWS.memoize does not do the job as it only does it per thread
Added an InstanceCache singleton to manage instances metadata with
timeouts
"Request limit exceeded" is handled by a random back off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant