Set Config Action

Request

GET /api/_set_config

Description

Used to dynamically set the configuration of FE. This command is passed through the ADMIN SET FRONTEND CONFIG command. But this command will only set the configuration of the corresponding FE node. And it will not automatically forward the MasterOnly configuration item to the Master FE node.

Path parameters

None

Query parameters

  • confkey1=confvalue1

    Specify the configuration name to be set, and its value is the configuration value to be modified.

  • persist

    Whether to persist the modified configuration. The default is false, which means it is not persisted. If it is true, the modified configuration item will be written into the fe_custom.conf file and will still take effect after FE is restarted.

Request body

None

Response

  1. {
  2. "msg": "success",
  3. "code": 0,
  4. "data": {
  5. "set": {
  6. "storage_min_left_capacity_bytes": "1024",
  7. "qe_max_connection": "2048"
  8. },
  9. "err": {
  10. "replica_ack_policy": "SIMPLE_MAJORITY"
  11. }
  12. },
  13. "count": 0
  14. }

The set field indicates the successfully set configuration. The err field indicates the configuration that failed to be set.

Examples

  1. Set the two configuration values of max_bytes_per_broker_scanner and max_broker_concurrency.

    1. GET /api/_set_config?max_bytes_per_broker_scanner=21474836480&max_broker_concurrency=20
    2. Response:
    3. {
    4. "msg": "success",
    5. "code": 0,
    6. "data": {
    7. "set": {
    8. "max_bytes_per_broker_scanner": "21474836480",
    9. "max_broker_concurrency": "20"
    10. },
    11. "err": {}
    12. },
    13. "count": 0
    14. }
  2. Set max_bytes_per_broker_scanner and persist it.

    1. GET /api/_set_config?max_bytes_per_broker_scanner=21474836480&persist=true
    2. Response:
    3. {
    4. "msg": "success",
    5. "code": 0,
    6. "data": {
    7. "set": {
    8. "max_bytes_per_broker_scanner": "21474836480"
    9. },
    10. "err": {},
    11. "persist": "ok"
    12. },
    13. "count": 0
    14. }