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

Mc doc #985

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Mc doc #985

wants to merge 3 commits into from

Conversation

caijieming-ng
Copy link
Collaborator

@@ -0,0 +1,33 @@
#compact优化——多线程compact
Copy link
Collaborator

Choose a reason for hiding this comment

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

注意下排版,md不能用空格缩进

@baidubot
Copy link
Collaborator

Reviewers: @lylei @xupeilin

@00k
Copy link
Collaborator

00k commented Aug 25, 2016

文件名改一下吧,multi_thread范围太大了,重点应该是compact

@00k
Copy link
Collaborator

00k commented Aug 26, 2016

build

#compact优化——多线程compact
##背景

leveldb的compact策略是采用单线程执行的,顺序的读写逻辑减少了磁盘抖动,有利于发挥单机的机械磁盘的高效顺序读写性能。而类似rocksdb和tera的使用场景,底层直接使用ssd或使用ssd做本地cache或使用分布式文件系统,突破了机械磁盘的限制,在这种场景下,tera目前仍然使用levelbd的单线程模型做compact,业务的写热点很容易导致写入失败。因此本次实现多线程compact,充分利用底层存储带宽,提升compact性能,保证写分裂前,不会因为写热点导致写失败。
Copy link
Collaborator

Choose a reason for hiding this comment

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

磁盘抖动是啥。。大致明白你意思,不过好像没这个专业术语?

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.

6 participants