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

Implement ability to control timeout and stride from Throttler #52

Merged
merged 3 commits into from
Oct 2, 2013

Conversation

edmundsalvacion
Copy link
Contributor

The purpose of this change is to have the concept of a "throttler"
control not just the timeout, but also the stride. This will give
us greater control over configuration during migrations.

To achieve this the following took place:

  • Rename the "throttle" instance and classes to "throttler". This became
    confusing as the legacy option of "throttle" was misleading
  • Move the legacy support to the invoker and reduce the complexity of the
    Throttler code
  • Introduce a stride method to the Throttler and have the Chunker access it

@arthurnn
Copy link
Contributor

arthurnn commented Oct 1, 2013

👍

options[:throttle] = Throttle::Factory.create_throttle(*options[:throttle])
if options[:throttler]
options[:throttler] = Throttler::Factory.create_throttler(*options[:throttler])
elsif options[:throttle] || options[:stride]
Copy link
Contributor

Choose a reason for hiding this comment

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

s/throttle/throttler

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, nvm.

@grobie
Copy link
Contributor

grobie commented Oct 1, 2013

👍

pellegrino added a commit that referenced this pull request Oct 2, 2013
Implement ability to control timeout and stride from Throttler
@pellegrino pellegrino merged commit 53807ca into master Oct 2, 2013
@pellegrino pellegrino deleted the throttler branch October 2, 2013 11:38
@orien orien mentioned this pull request Jul 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants