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

Add support for hedged requests #2

Open
magro opened this issue Jan 15, 2015 · 1 comment
Open

Add support for hedged requests #2

magro opened this issue Jan 15, 2015 · 1 comment

Comments

@magro
Copy link
Member

magro commented Jan 15, 2015

From http://blog.acolyer.org/2015/01/15/the-tail-at-scale/:

Hedged requests: send the same requests to multiple servers, and use whatever response comes back first. To avoid doubling or tripling your computation load though, don’t send the hedging requests straight away:
defer sending a secondary request until the first request has been outstanding for more than the 95th-percentile expected latency for this class of requests. This approach limits the additional load to approximately 5% while substantially shortening the tail latency.

@magro
Copy link
Member Author

magro commented Apr 3, 2015

Note that there may be different kinds of queries that have different latency histograms (e.g. a plain search, a faceted search or a spelling suggestions). They need to be differentiated when deciding to start a second request.

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

No branches or pull requests

1 participant