# Modifying TiDB Cluster Configuration File Parameters

__*TiDB cluster configuration scope*__
__*TiDB cluster variable scope*__
__*TiDB cluster configuration modify*__
__*Modifying TiDB cluster variables*__
__*zz-BGL*__
__*zz-Jeff*__

+ **Step 1:** Open the cluster's configuration file in edit mode
+ **Step 2:** Set parameters
+ **Step 3:** Execute the reload command to roll out the configuration and restart the corresponding components


```
~!@// Step 1@!~
$ tiup cluster edit-config {cluster-name}

~!@// Step 2@!~
server_configs:
  tidb:
    log.slow-threshold: 300
...
tidb_servers:
- host: 10.0.1.11
    port: 4000
    config:
        log.slow-threshold: 300

~!@// Step 3@!~
$ tiup cluster reload {cluster-name} [-N {nodes}] [-R {roles}]
```

-------------------------------------------------------------
To change the cluster configuration parameters stored on the `TiDB` nodes, `TiKV` nodes, and `PD` nodes, you should use `tiup edit-config` and `tiup reload`.

Step 1: Open the cluster's configuration file in edit mode:
```
$ tiup cluster edit-config {cluster-name}
```

Step 2: Set the parameters:
- `server_configs` for all nodes, for example:
```
server_configs:
  tidb:
    log.slow-threshold: 300
```
- For specific nodes, for example:
```
tidb_servers:
- host: 10.0.1.11
    port: 4000
    config:
      log.slow-threshold: 300
```

Step 3: Execute the reload command to roll out the configuration and restart the corresponding components:
```
$ tiup cluster reload {cluster-name} [-N {nodes}] [-R {roles}]
```