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

stagger deploy option #364

Merged
merged 2 commits into from Sep 7, 2019

Conversation

@tongueroo
Copy link
Owner

commented Sep 7, 2019

  • add stagger to slow down deploy if needed
  • docs: config.deploy.stagger options
  • specs: stagger_spec.rb

This is a πŸ™‹β€β™‚οΈ feature or enhancement.
This is a 🧐 documentation change.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes (run bundle exec rspec to verify this)

Summary

Users with rather large Jets applications (hundreds of lambda functions) are running into internal AWS Lambda -> EC2 Rate limits. This adds stagger options which slow down the deploy to mitigate running up against the rate limit. Example:

config/application.rb:

config.deploy.stagger.enabled = true  # default is false
config.deploy.stagger.batch_size = 10 # default is 10

Interestingly, tested a Jets application without staggering enables, with more than 200 Lambda functions and was unable to trigger the internal Lambda rate limit.

lambda-200-functions

Others have reported running into this though 🧐

Context

https://community.rubyonjets.com/t/rate-limit-exceeded/257

tongueroo added 2 commits Sep 4, 2019
Add stagger deploy option
* add stagger to slow down deploy if needed
* docs: config.deploy.stagger options
* specs: stagger_spec.rb

@tongueroo tongueroo changed the title Stagger stagger deploy option Sep 7, 2019

@tongueroo tongueroo merged commit 80f926f into master Sep 7, 2019

1 check passed

ci/circleci Your tests passed on CircleCI!
Details

@tongueroo tongueroo deleted the stagger branch Sep 7, 2019

@tongueroo

This comment has been minimized.

Copy link
Owner Author

commented Sep 7, 2019

Released in v2.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.