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

flow control using total writing bytes #2408

Merged
merged 7 commits into from Oct 26, 2017

Conversation

zhangjinpeng87
Copy link
Member

No description provided.

@zhangjinpeng87
Copy link
Member Author

/run-all-tests

@zhangjinpeng87 zhangjinpeng87 requested review from siddontang and removed request for disksing October 24, 2017 03:33
# scheduler-too-busy-threshold = 10000
# When the pending write bytes exceeds this threshold,
# the "scheduler too busy" error is displayed.
# scheduler_pending_write_threshold = "10MB"
Copy link
Contributor

Choose a reason for hiding this comment

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

s/scheduler_pending_write_threshold/scheduler-pending-write-threshold/

@zhangjinpeng87 zhangjinpeng87 added the priority/critical Priority: Critical label Oct 25, 2017
@siddontang
Copy link
Contributor

LGTM

// According to "Little's law", assuming you can write 100MB per
// second, and it takes about 100ms to process the write requests
// on average, hence using the 10MB as the default value here.
const DEFAULT_SCHED_PENDING_WRITE_MB: u64 = 10;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can tolerate a larger latency (e.g. 1s), so maybe 100MB is more proper?

Copy link
Contributor

@huachaohuang huachaohuang left a comment

Choose a reason for hiding this comment

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

LGTM

@huachaohuang
Copy link
Contributor

/run-all-test

1 similar comment
@zhangjinpeng87
Copy link
Member Author

/run-all-test

@zhangjinpeng87 zhangjinpeng87 merged commit b308c76 into master Oct 26, 2017
@zhangjinpeng87 zhangjinpeng87 deleted the zhangjinpeng/write-control-by-bytes branch October 26, 2017 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/critical Priority: Critical
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants