You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2020/07/08 02:00:08 UTC

[incubator-doris] branch master updated: [Config] Enable some features by default (#4031)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 7715a84  [Config] Enable some features by default (#4031)
7715a84 is described below

commit 7715a84d4dfcd469d79e76f36ec92963a2ce6e3c
Author: Mingyu Chen <mo...@gmail.com>
AuthorDate: Wed Jul 8 09:59:10 2020 +0800

    [Config] Enable some features by default (#4031)
    
    Its time to enable some features by default.
    
    1. Enable FE plugins by setting `plugin_enable=true`
    2. Enable dynamic partition by setting `dynamic_partition_enable=true`
    3. Enable nio mysql server by setting `mysql_service_nio_enabled=true`
    
    Also modify installation doc, add download link of MySQL client.
---
 docs/en/installing/install-deploy.md                 | 8 +-------
 docs/zh-CN/installing/install-deploy.md              | 8 +-------
 fe/src/main/java/org/apache/doris/common/Config.java | 6 +++---
 3 files changed, 5 insertions(+), 17 deletions(-)

diff --git a/docs/en/installing/install-deploy.md b/docs/en/installing/install-deploy.md
index c61a548..aedbf0e 100644
--- a/docs/en/installing/install-deploy.md
+++ b/docs/en/installing/install-deploy.md
@@ -167,7 +167,7 @@ BROKER does not currently have, nor does it need, priority\ networks. Broker's s
 
 * Add all BE nodes to FE
 
-	BE nodes need to be added in FE before they can join the cluster. You can use mysql-client to connect to FE:
+	BE nodes need to be added in FE before they can join the cluster. You can use mysql-client([Download MySQL 5.7](https://dev.mysql.com/downloads/mysql/5.7.html)) to connect to FE:
 
 	`./mysql-client -h host -P port -uroot`
 
@@ -177,14 +177,8 @@ BROKER does not currently have, nor does it need, priority\ networks. Broker's s
 
 	`ALTER SYSTEM ADD BACKEND "host:port";`
 
-	If the multi-tenant function is used, the following command is executed to add BE:
-
-	`ALTER SYSTEM ADD FREE BACKEND "host:port";`
-
 	The host is the node IP where BE is located; the port is heartbeat_service_port in be/conf/be.conf.
 
-	If the FREE keyword is not added, BE defaults to the automatically generated cluster, and the new BE does not belong to any cluster after adding the FREE keyword, so that when creating a new cluster, it can be selected from these free be, as detailed in [Multi-tenant Design Document] (./administrator-guide/operation/multi-tenant.md)
-
 * Start BE
 
 	`sh bin/start_be.sh --daemon`
diff --git a/docs/zh-CN/installing/install-deploy.md b/docs/zh-CN/installing/install-deploy.md
index 65bb2be..420b44a 100644
--- a/docs/zh-CN/installing/install-deploy.md
+++ b/docs/zh-CN/installing/install-deploy.md
@@ -163,7 +163,7 @@ BROKER 当前没有,也不需要 priority\_networks 这个选项。Broker 的
 
 * 在 FE 中添加所有 BE 节点
 
-    BE 节点需要先在 FE 中添加,才可加入集群。可以使用 mysql-client 连接到 FE:
+    BE 节点需要先在 FE 中添加,才可加入集群。可以使用 mysql-client([下载MySQL 5.7](https://dev.mysql.com/downloads/mysql/5.7.html)) 连接到 FE:
 
     `./mysql-client -h host -P port -uroot`
 
@@ -173,13 +173,7 @@ BROKER 当前没有,也不需要 priority\_networks 这个选项。Broker 的
 
     `ALTER SYSTEM ADD BACKEND "host:port";`
 
-	如果使用多租户功能,则执行以下命令添加 BE:
-    
-   	`ALTER SYSTEM ADD FREE BACKEND "host:port";`
-   	
    	其中 host 为 BE 所在节点 ip;port 为 be/conf/be.conf 中的 heartbeat_service_port。
-   	
-   	如果不添加 FREE 关键字,BE 默认进入自动生成的 cluster,添加了 FREE 关键字后新的 BE 不属于任何 cluster,这样创建新 cluster 的时候就可以从这些空闲的be中选取,详细见[多租户设计文档](../administrator-guide/operation/multi-tenant.md)
 
 * 启动 BE
 
diff --git a/fe/src/main/java/org/apache/doris/common/Config.java b/fe/src/main/java/org/apache/doris/common/Config.java
index 7447008..0f13d55 100644
--- a/fe/src/main/java/org/apache/doris/common/Config.java
+++ b/fe/src/main/java/org/apache/doris/common/Config.java
@@ -109,7 +109,7 @@ public class Config extends ConfigBase {
     @ConfField public static String plugin_dir = System.getenv("DORIS_HOME") + "/plugins";
 
     @ConfField(mutable = true, masterOnly = true)
-    public static boolean plugin_enable = false;
+    public static boolean plugin_enable = true;
 
     /**
      * Labels of finished or cancelled load jobs will be removed after *label_keep_max_second*
@@ -318,7 +318,7 @@ public class Config extends ConfigBase {
     /**
      * mysql service nio option.
      */
-    @ConfField public static boolean mysql_service_nio_enabled = false;
+    @ConfField public static boolean mysql_service_nio_enabled = true;
 
     /**
      * num of thread to handle io events in mysql.
@@ -1061,7 +1061,7 @@ public class Config extends ConfigBase {
      * If set to true, dynamic partition feature will open
      */
     @ConfField(mutable = true, masterOnly = true)
-    public static boolean dynamic_partition_enable = false;
+    public static boolean dynamic_partition_enable = true;
 
     /**
      * control rollup job concurrent limit


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org