SET FRONTEND CONFIG
Description
This statement is used to set the configuration items of the cluster (currently only supports setting FE configuration items).
Syntax:
ADMIN SET {ALL FRONTENDS | FRONTEND} CONFIG ("<fe_config_key>" = "<fe_config_value>")
Required Parameters
{ALL FRONTENDS | FRONTEND}
ALL FRONTENDS
: Represents all FE nodes in the Doris cluster
FRONTEND
: Represents the currently connected FE node, i.e., the FE node the user is interacting with
Optional Parameters
The <fe_config_key>
and <fe_config_value>
that need to be modified can be viewed through the SHOW FRONTEND CONFIG command
Explanation
- Starting from version 2.1.5, the
ALL
keyword is supported. When using theALL
keyword, the configuration parameters will be applied to all FEs (except for themaster_only
parameter). - This syntax does not persistently modify the configuration. After an FE restarts, the modified configuration becomes invalid. To persist the changes, the configuration items need to be synchronously added in fe.conf.
Example
-
Set
disable_balance
totrue
ADMIN SET FRONTEND CONFIG ("disable_balance" = "true");
-
Set
disable_balance
of all FE nodes totrue
ADMIN SET ALL FRONTENDS CONFIG ("disable_balance" = "true");