HBASE-1138 Set default HLog block size.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@736359 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1dd27a5c82
commit
8bd2b4d7bd
|
@ -180,6 +180,14 @@
|
||||||
milliseconds.
|
milliseconds.
|
||||||
</description>
|
</description>
|
||||||
</property>
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.regionserver.hlog.blocksize</name>
|
||||||
|
<value>67108864</value>
|
||||||
|
<description>Block size for HLog files. To minimize potential data loss,
|
||||||
|
the size should be (avg key length) * (avg value length) * flushlogentries.
|
||||||
|
Default 64MB.
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
<property>
|
<property>
|
||||||
<name>hbase.regionserver.thread.splitcompactcheckfrequency</name>
|
<name>hbase.regionserver.thread.splitcompactcheckfrequency</name>
|
||||||
<value>20000</value>
|
<value>20000</value>
|
||||||
|
|
|
@ -174,7 +174,7 @@ public class HLog implements HConstants, Syncable {
|
||||||
this.flushlogentries =
|
this.flushlogentries =
|
||||||
conf.getInt("hbase.regionserver.flushlogentries", 100);
|
conf.getInt("hbase.regionserver.flushlogentries", 100);
|
||||||
this.blocksize =
|
this.blocksize =
|
||||||
conf.getLong("hbase.regionserver.hlog.blocksize", 1024L * 1024L);
|
conf.getLong("hbase.regionserver.hlog.blocksize", 1024L * 1024L * 64L);
|
||||||
this.optionalFlushInterval =
|
this.optionalFlushInterval =
|
||||||
conf.getLong("hbase.regionserver.optionallogflushinterval", 10 * 1000);
|
conf.getLong("hbase.regionserver.optionallogflushinterval", 10 * 1000);
|
||||||
this.threadWakeFrequency = conf.getLong(THREAD_WAKE_FREQUENCY, 10 * 1000);
|
this.threadWakeFrequency = conf.getLong(THREAD_WAKE_FREQUENCY, 10 * 1000);
|
||||||
|
|
Loading…
Reference in New Issue