Skip to content

Commit 0d736a5

Browse files
authored
chore: add external system_history (#2464)
1 parent 621e6a7 commit 0d736a5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/en/guides/10-deploy/02-upgrade/10-compatibility.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ History versions that are not included in the above chart:
143143
- ⚠️ **Recommendation**: All nodes under the same tenant should be upgraded together
144144
- Avoid mixing nodes with versions before and after 1.2.709 to prevent potential data access issues
145145

146+
### Version 1.2.764
147+
- If you need specify a different storage location for `system_history` tables. All nodes under the same tenant need to be upgraded to 1.2.764+
148+
146149
## Compatibility between databend-meta
147150

148151
| Meta version | Backward compatible with |

docs/en/guides/10-deploy/04-references/02-node-config/02-query-config.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,16 @@ The following is a list of the parameters available within the [log.history] sec
115115
| level | Sets the log level (DEBUG, TRACE, INFO, WARN, or ERROR) for history logging. Defaults to WARN. |
116116
| retention_interval| The interval (in hours) at which the retention process is triggered to check if need to clean up old data. Defaults to 24. |
117117
| tables | Specifies which history tables to enable and their retention policies. This is an array of objects, each with table_name (the name of the history table) and retention (the retention period in hours for that table). |
118+
| storage | Specifies the storage location for history tables. By default, history tables use the same storage configuration as defined in the [storage] section, but you can specify an alternative storage location specifically for history tables. The format is exactly the same as the [storage] section.|
118119

119120
`tables` are an array of objects, each object has two parameters:
120121
| Parameter | Description |
121122
| --------- | ----------- |
122123
| table_name | The name of the history table. (currently support: `log_history`, `profile_history`, `query_history`, `login_history`) |
123124
| retention | The retention period in hours for that table. |
124125
Note: `log_history` table will be enable in default
126+
127+
If `storage` is specified, the original default history tables will be dropped and recreated with the new storage configuration. All nodes under the same tenant must maintain the same `storage` configuration to ensure consistency.
125128

126129
## [meta] Section
127130

0 commit comments

Comments
 (0)