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

rate limit auto-tuning #1957

Closed
wants to merge 5 commits into from
Closed

rate limit auto-tuning #1957

wants to merge 5 commits into from

Conversation

ajkr
Copy link
Contributor

@ajkr ajkr commented Mar 7, 2017

try a simple demand-based dynamic rate limiter. as commented, it adjusts rate limit upwards when demand is consistently high, and downwards when demand is consistently low. what we really should do is estimate the rate needed to prevent L0 from filling up, but let's try something even simpler for the first stab.

Test Plan: tried in db_bench and watched it increase/decrease rate limit. need help coming up with an evaluation plan

@facebook-github-bot
Copy link
Contributor

@ajkr updated the pull request - view changes

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ajkr updated the pull request - view changes - changes since last import

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@siying
Copy link
Contributor

siying commented Mar 23, 2017

Is it ready for code review?

@ajkr
Copy link
Contributor Author

ajkr commented Mar 23, 2017

Thanks for checking. I think let's deprioritize this one as I don't have a use case yet or intent to benchmark it in the near future. We can focus on #2027 instead as it seems more likely to help write stall issues.

@ajkr ajkr requested a review from siying June 6, 2017 00:08
@ajkr
Copy link
Contributor Author

ajkr commented Jun 6, 2017

@siying, do you mind looking at the API for configuring auto-tuning objects and giving any feedback? I plan to play with the rate limit calculation a bit, but the other stuff in this diff might be good to review earlier.

@ajkr ajkr force-pushed the rate-limiter-tuner branch from 71fe683 to 42a1a8d Compare June 6, 2017 00:41
@facebook-github-bot
Copy link
Contributor

@ajkr updated the pull request - view changes - changes since last import

@facebook-github-bot
Copy link
Contributor

@ajkr updated the pull request - view changes - changes since last import

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ajkr updated the pull request - view changes - changes since last import

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

// Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
Copy link
Contributor

Choose a reason for hiding this comment

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

You might also need to add a few more lines here like the ones added in #2226 .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, done :)

@facebook-github-bot
Copy link
Contributor

@ajkr updated the pull request - view changes - changes since last import

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ajkr updated the pull request - view changes - changes since last import

@ajkr
Copy link
Contributor Author

ajkr commented Sep 23, 2017

replaced with #2899

@ajkr ajkr closed this Sep 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants