Skip to content

Commit ac07511

Browse files
authored
Added attention to online parameter changes (#4607)
1 parent 052a476 commit ac07511

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

dynamic-config.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,22 @@ When using the `set config` statement, you can modify the configuration of a sin
6565

6666
- Modify the configuration of all TiKV instances:
6767

68-
{{< copyable "sql" >}}
68+
> **Note:**
69+
>
70+
> It is recommended to wrap variable names in backticks.
6971
70-
```sql
71-
set config tikv split.qps-threshold=1000
72-
```
72+
{{< copyable "sql" >}}
73+
74+
```sql
75+
set config tikv `split.qps-threshold`=1000
76+
```
7377

7478
- Modify the configuration of a single TiKV instance:
7579

7680
{{< copyable "sql" >}}
7781

7882
```sql
79-
set config "127.0.0.1:20180" split.qps-threshold=1000
83+
set config "127.0.0.1:20180" `split.qps-threshold`=1000
8084
```
8185

8286
If the modification is successful, `Query OK` is returned:
@@ -90,7 +94,7 @@ If an error occurs during the batch modification, a warning is returned:
9094
{{< copyable "sql" >}}
9195

9296
```sql
93-
set config tikv log-level='warn';
97+
set config `tikv log-level`='warn';
9498
```
9599

96100
```sql
@@ -212,7 +216,7 @@ You can modify the PD configurations using the following statement:
212216
{{< copyable "sql" >}}
213217
214218
```sql
215-
set config pd log.level='info'
219+
set config pd `log.level`='info'
216220
```
217221

218222
If the modification is successful, `Query OK` is returned:

0 commit comments

Comments
 (0)