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 versions 2.0.11 and 2.1.5, the
ALLkeyword is supported. When using theALLkeyword, the configuration parameters will be applied to all FEs (except for themaster_onlyparameter). - 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_balancetotrueADMIN SET FRONTEND CONFIG ("disable_balance" = "true"); -
Set
disable_balanceof all FE nodes totrueADMIN SET ALL FRONTENDS CONFIG ("disable_balance" = "true");