You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: storage-engine/titan-configuration.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,13 +112,21 @@ To adjust Titan-related parameters using TiUP, refer to [Modify the configuratio
112
112
113
113
## Disable Titan (experimental)
114
114
115
+
>**Warning:**
116
+
>
117
+
> Disabling Titan is an experimental feature. It is **NOT** recommended to use it if not necessary.
118
+
115
119
To disable Titan, you can configure the `rocksdb.defaultcf.titan.blob-run-mode` option. The optional values for`blob-run-mode` are as follows:
116
120
117
121
- When the option is set to `normal`, Titan performs read and write operations normally.
118
122
- When the option is set to `read-only`, all newly written values are written into RocksDB, regardless of the value size.
119
123
- When the option is set to `fallback`, all newly written values are written into RocksDB, regardless of the value size. Also, all compacted values stored in the Titan blob file are automatically moved back to RocksDB.
120
124
121
-
To disable Titan, perform the following steps:
125
+
To disable Titan for all existing and future data, you can take the following steps. Note that you can skip Step 2 because it greatly affects online traffic performance. In fact even without Step 2, the data compaction consumes extra I/O and CPU resources when it moves data from Titan to RocksDB, and performance will degrade (sometimes as much as 50%) when TiKV I/O or CPU resources are limited.
126
+
127
+
>**Warning:**
128
+
>
129
+
> When disabling Titan for TiDB versions earlier than v8.5.0, it is not recommended to modify the TiKV configuration item [`rocksdb.titan.enabled`](/tikv-configuration-file.md#enabled) to `false`, as this might cause TiKV to crash. Following Step 1 is sufficient to disable Titan.
122
130
123
131
1. Update the configuration file of the TiKV nodes you wish to disable Titan for and restart TiKV:
124
132
@@ -137,17 +145,6 @@ To disable Titan, perform the following steps:
137
145
138
146
3. After the compaction is finished, waituntil the **Blob file count** metrics under **TiKV-Details/Titan - kv** decrease to `0`.
139
147
140
-
4. Update the configuration of these TiKV nodes to disable Titan.
141
-
142
-
```toml
143
-
[rocksdb.titan]
144
-
enabled = false
145
-
```
146
-
147
-
>**Warning:**
148
-
>
149
-
> Disabling Titan is an experimental feature. It is **NOT** recommended to use it if not necessary.
150
-
151
148
## Level Merge (experimental)
152
149
153
150
In TiKV 4.0, [Level Merge](/storage-engine/titan-overview.md#level-merge), a new algorithm, is introduced to improve the performance of range query and to reduce the impact of Titan GC on the foreground write operations. You can enable Level Merge using the following option:
Copy file name to clipboardExpand all lines: tikv-configuration-file.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1156,6 +1156,10 @@ Configuration items related to Titan.
1156
1156
1157
1157
### `enabled`
1158
1158
1159
+
> **Warning**
1160
+
>
1161
+
> When disabling Titan for TiDB versions earlier than v8.5.0, it is not recommended to modify this configuration item to `false`, as this might cause TiKV to crash. To disable Titan, refer to the steps in [Disable Titan (experimental)](/storage-engine/titan-configuration.md#disable-titan-experimental).
0 commit comments