Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kvdb
rocksdb
提交
9ff9abeb
R
rocksdb
项目概览
kvdb
/
rocksdb
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rocksdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9ff9abeb
编写于
2月 07, 2014
作者:
I
Igor Canadi
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into columnfamilies
上级
99e61fdd
4159a284
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
doc/index.html
doc/index.html
+7
-7
未找到文件。
doc/index.html
浏览文件 @
9ff9abeb
...
...
@@ -609,13 +609,13 @@ key-value during background compaction.
</ul>
<p>
Other options impacting performance of compactions and when they get triggered
are:
are:
<ul>
<p>
<li>
<code>
Options::access_hint_on_compaction_start
</code>
- Specify the file access
<li>
<code>
Options::access_hint_on_compaction_start
</code>
- Specify the file access
pattern once a compaction is started. It will be applied to all input files of a compaction. Default: NORMAL
<p>
<li>
<code>
Options::level0_file_num_compaction_trigger
</code>
- Number of files to trigger level-0 compaction.
<li>
<code>
Options::level0_file_num_compaction_trigger
</code>
- Number of files to trigger level-0 compaction.
A negative value means that level-0 compaction will not be triggered by number of files at all.
<p>
<li>
<code>
Options::max_mem_compaction_level
</code>
- Maximum level to which a new compacted memtable is pushed if it
...
...
@@ -623,7 +623,7 @@ does not create overlap. We try to push to level 2 to avoid the relatively expe
expensive manifest file operations. We do not push all the way to the largest level since that can generate a lot of wasted disk
space if the same key space is being repeatedly overwritten.
<p>
<li>
<code>
Options::target_file_size_base
</code>
and
<code>
Options::target_file_size_multiplier
</code>
-
<li>
<code>
Options::target_file_size_base
</code>
and
<code>
Options::target_file_size_multiplier
</code>
-
Target file size for compaction. target_file_size_base is per-file size for level-1.
Target file size for level L can be calculated by target_file_size_base * (target_file_size_multiplier ^ (L-1))
For example, if target_file_size_base is 2MB and target_file_size_multiplier is 10, then each file on level-1 will
...
...
@@ -698,7 +698,7 @@ Default: kCompactionStopStyleTotalSize
A thread pool is associated with Env environment object. The client has to create a thread pool by setting the number of background
threads using method
<code>
Env::SetBackgroundThreads()
</code>
defined in
<code>
rocksdb/env.h
</code>
.
We use the thread pool for compactions and memtable flushes.
Since memtable flushes are in critical code path (stalling memtable flush can stall writes, increasing p99), we suggest
Since memtable flushes are in critical code path (stalling memtable flush can stall writes, increasing p99), we suggest
having two thread pools - with priorities HIGH and LOW. Memtable flushes can be set up to be scheduled on HIGH thread pool.
There are two options available for configuration of background compactions and flushes:
<ul>
...
...
@@ -779,9 +779,9 @@ implementation. See <code>rocksdb/util/env_posix.h</code> for an example.
<p>
To be able to efficiently tune your application, it is always helpful if you
have access to usage statistics. You can collect those statistics by setting
<code>
Options::table_
stat
s_collectors
</code>
or
<code>
Options::table_
propertie
s_collectors
</code>
or
<code>
Options::statistics
</code>
. For more information, refer to
<code>
rocksdb/table_
stat
s.h
</code>
and
<code>
rocksdb/statistics.h
</code>
.
<code>
rocksdb/table_
propertie
s.h
</code>
and
<code>
rocksdb/statistics.h
</code>
.
These should not add significant overhead to your application and we
recommend exporting them to other monitoring tools.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录