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

optionally limit reloads based on worker count #175

Merged
merged 10 commits into from
Apr 26, 2016
Merged

Conversation

ssalinas
Copy link
Member

No description provided.

@Provides
public Optional<RateLimiter> providesReloadRateLimiter(LoadBalancerConfiguration configuration) {
if (configuration.getMaxReloadsPerMinute() > 0) {
double ratePerSecond = configuration.getMaxReloadsPerMinute() / 60.0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be good to use TimeUnit instead

@ssalinas
Copy link
Member Author

@tpetr updated for all comments

@ssalinas ssalinas changed the title optionally rate limit reloads in the lb config adapter optionally limit reloads based on worker count Apr 25, 2016
@ssalinas ssalinas added the qa label Apr 26, 2016
@ssalinas ssalinas merged commit 9d0ded5 into master Apr 26, 2016
@ssalinas ssalinas deleted the reload_rate_limit branch April 26, 2016 16:08
@ssalinas ssalinas removed the staging label Apr 26, 2016
@ssalinas ssalinas modified the milestone: 0.3.0 Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants