hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject git commit: HBASE-11324 Update Managed Compactions (Misty Stanley-Jones)
Date Wed, 25 Jun 2014 00:16:31 GMT
Repository: hbase
Updated Branches:
  refs/heads/master b26fb383c -> 05c1b27e6

HBASE-11324 Update Managed Compactions (Misty Stanley-Jones)

Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/05c1b27e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/05c1b27e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/05c1b27e

Branch: refs/heads/master
Commit: 05c1b27e6f34beff714a356b926e4b1da1c9e56c
Parents: b26fb38
Author: stack <stack@apache.org>
Authored: Tue Jun 24 17:15:55 2014 -0700
Committer: stack <stack@apache.org>
Committed: Tue Jun 24 17:16:13 2014 -0700

 src/main/docbkx/book.xml          |  2 +-
 src/main/docbkx/configuration.xml | 21 +++++++++++++--------
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/src/main/docbkx/book.xml b/src/main/docbkx/book.xml
index dbf580c..35b7848 100644
--- a/src/main/docbkx/book.xml
+++ b/src/main/docbkx/book.xml
@@ -3205,7 +3205,7 @@ myHtd.setValue(HTableDescriptor.SPLIT_POLICY, MyCustomSplitPolicy.class.getName(
-            <table>
+            <table xlink:id="compaction.parameters">
               <title>Parameters Used by Compaction Algorithm</title>
                 <para>This table contains the main configuration parameters for compaction.

diff --git a/src/main/docbkx/configuration.xml b/src/main/docbkx/configuration.xml
index 1d257b9..9a42c60 100644
--- a/src/main/docbkx/configuration.xml
+++ b/src/main/docbkx/configuration.xml
@@ -1387,14 +1387,19 @@ index e70ebc6..96f8c27 100644
         <title>Managed Compactions</title>
-        <para>A common administrative technique is to manage major compactions manually,
rather than
-          letting HBase do it. By default, <varname>HConstants.MAJOR_COMPACTION_PERIOD</varname>
-          one day and major compactions may kick in when you least desire it - especially
on a busy
-          system. To turn off automatic major compactions set the value to <varname>0</varname>.
-        <para>It is important to stress that major compactions are absolutely necessary
-          StoreFile cleanup, the only variant is when they occur. They can be administered
-          the HBase shell, or via <link
-            xlink:href="http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HBaseAdmin.html#majorCompact%28java.lang.String%29">HBaseAdmin</link>.
+        <para>By default, major compactions are scheduled to run once in a 7-day period.
Prior to HBase 0.96.x, major
+          compactions were scheduled to happen once per day by default.</para>
+        <para>If you need to control exactly when and how often major compaction runs,
you can
+          disable managed major compactions. See the entry for
+            <varname>hbase.hregion.majorcompaction</varname> in the <xref
+            linkend="compaction.parameters" /> table for details.</para>
+        <warning>
+          <title>Do Not Disable Major Compactions</title>
+          <para>Major compactions are absolutely necessary for StoreFile clean-up.
Do not disable
+            them altogether. You can run major compactions manually via the HBase shell or
via the <link
+              xlink:href="http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HBaseAdmin.html#majorCompact%28java.lang.String%29">HBaseAdmin
+              API</link>.</para>
+        </warning>        
         <para>For more information about compactions and the compaction file selection
process, see <xref
             linkend="compaction" /></para>

View raw message