Skip to content

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不能用空格缩进

@caijieming-ng caijieming-ng force-pushed the mc-doc branch 2 times, most recently from ea9bb1c to 3c93f2a Compare August 25, 2016 05:24
@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