FE Configuration
FE parameters are classified into dynamic parameters and static parameters.
-
Dynamic parameters can be configured and adjusted by running SQL commands, which is very convenient. But the configurations become invalid if you restart your FE. Therefore, we recommend that you also modify the configuration items in the fe.conf file to prevent the loss of modifications.
-
Static parameters can only be configured and adjusted in the FE configuration file fe.conf. After you modify this file, you must restart your FE for the changes to take effect.
Whether a parameter is a dynamic parameter is indicated by the IsMutable column in the output of ADMIN SHOW CONFIG. TRUE indicates a dynamic parameter.
Note that both dynamic and static FE parameters can be configured in the fe.conf file.
FE の設定項目を表示する
FE が起動した後、MySQL クライアントで ADMIN SHOW FRONTEND CONFIG コマンドを実行して、パラメータ設定を確認できます。特定のパラメータの設定を確認したい場合は、次のコマンドを実行します。
ADMIN SHOW FRONTEND CONFIG [LIKE "pattern"];
返されるフィールドの詳細な説明については、 ADMIN SHOW CONFIG を参照してください。
クラスタ管理関連のコマンドを実行するには、管理者権限が必要です。
FE パラメータを設定する
FE 動的パラメータを設定する
ADMIN SET FRONTEND CONFIG を使用して、FE 動的パラメータの設定を変更できます。
ADMIN SET FRONTEND CONFIG ("key" = "value");
The configuration changes made with ADMIN SET FRONTEND will be restored to the default values in the fe.conf file after the FE restarts. Therefore, we recommend that you also modify the configuration items in fe.conf if you want the changes to be permanent.
FE 静的パラメータを設定する
Static parameters of an FE are set by changing them in the configuration file fe.conf and restarting the FE to allow the changes to take effect.