Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ec2tags selector #89

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

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