8000 Changes the timeout duration of a MDS request to reduce latency by shinnya · Pull Request #231 · frugalos/frugalos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Changes the timeout duration of a MDS request to reduce latency #231

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

Merged
merged 1 commit into from
Jan 10, 2020
Merged

Changes the timeout duration of a MDS request to reduce latency #231

merged 1 commit into from
Jan 10, 2020

Conversation

shinnya
Copy link
Contributor
@shinnya shinnya commented Nov 24, 2019

#172 Types of changes

Please check one of the following:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • New release (merge to both master and develop!)

Description of changes

Behavior

MDS へのリクエストで固定時間のタイムアウトを常に使うようになる。

Purpose

クラスタ数が大きい場合に exponential back-off をするとタイムアウト待ち時間が大きくなりすぎ、リクエストにタイムアウトを設定することでレイテンシを改善するという目的が達成できなくなるのを避けること。

Checklists

  • Run cargo fmt --all.
  • Run cargo clippy --all --all-targets.

The previous timeout duration was decided by exponential back-off,
but it occasionaly caused N seconds latency of MDS requests.

When the size of a cluster is large, the timeout duration can be
lower because MdsClient decides the total number of retries
depending on the size.
@shinnya shinnya added this to the v0.17.0 milestone Dec 17, 2019
@koba-e964 koba-e964 self-requested a review December 18, 2019 11:27
@shinnya shinnya merged commit 95ecbd0 into frugalos:develop Jan 10, 2020
@shinnya shinnya deleted the change-mds-request-timeout-policy branch January 10, 2020 07:23
@shinnya shinnya mentioned this pull request Jan 10, 2020
4 tasks
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

Successfully merging this pull request may close these issues.

3 participants
0