From d7d445b35429448c9d27a32082bbcc70e2c26b4a Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Wed, 10 Oct 2018 17:37:20 -0700 Subject: [PATCH] HDDS-619. hdds.db.profile should not be tagged as a required setting & should default to DISK. Contributed by Dinesh Chitlangia. (cherry picked from commit 2bd000c85195416b9bcd06a3abb5100aeeda9727) --- .../src/main/java/org/apache/hadoop/hdds/HddsConfigKeys.java | 2 +- hadoop-hdds/common/src/main/resources/ozone-default.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/HddsConfigKeys.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/HddsConfigKeys.java index 13b3bb72acf..210b075fd37 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/HddsConfigKeys.java +++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/HddsConfigKeys.java @@ -72,7 +72,7 @@ public final class HddsConfigKeys { // DB Profiles used by ROCKDB instances. public static final String HDDS_DB_PROFILE = "hdds.db.profile"; - public static final DBProfile HDDS_DEFAULT_DB_PROFILE = DBProfile.SSD; + public static final DBProfile HDDS_DEFAULT_DB_PROFILE = DBProfile.DISK; // Once a container usage crosses this threshold, it is eligible for // closing. diff --git a/hadoop-hdds/common/src/main/resources/ozone-default.xml b/hadoop-hdds/common/src/main/resources/ozone-default.xml index aee471e9b85..ef54ed21e57 100644 --- a/hadoop-hdds/common/src/main/resources/ozone-default.xml +++ b/hadoop-hdds/common/src/main/resources/ozone-default.xml @@ -1184,8 +1184,8 @@ hdds.db.profile - SSD - OZONE, OM, PERFORMANCE, REQUIRED + DISK + OZONE, OM, PERFORMANCE This property allows user to pick a configuration that tunes the RocksDB settings for the hardware it is running on. Right now, we have SSD and DISK as profile options.