This is an automated email from the ASF dual-hosted git repository. reswqa pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit 0fbd749cacc244a247f331a2a06bb6d347f964ba Author: Zihao Chen <[email protected]> AuthorDate: Fri Jun 12 11:26:33 2026 +0800 [FLINK-39911][docs] Document HistoryServer archive storage backend --- docs/content.zh/docs/deployment/advanced/historyserver.md | 13 +++++++++++++ docs/content/docs/deployment/advanced/historyserver.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/docs/content.zh/docs/deployment/advanced/historyserver.md b/docs/content.zh/docs/deployment/advanced/historyserver.md index 974cb8c4eed..748dbd867fc 100644 --- a/docs/content.zh/docs/deployment/advanced/historyserver.md +++ b/docs/content.zh/docs/deployment/advanced/historyserver.md @@ -85,6 +85,19 @@ historyserver.archive.fs.refresh-interval: 10000 请查看配置页面以获取[配置选项的完整列表]({{< ref "docs/deployment/config" >}}#history-server)。 +**存储后端** + +HistoryServer 支持通过 `historyserver.archive.storage.type` 选择本地存档存储后端: + +* `FILE`(默认):每个存档解压为多个 JSON 文件,存放在 `historyserver.web.tmpdir` 下。 +* `ROCKSDB`:所有存档以 KV 形式存储在 `historyserver.web.tmpdir/rocksdb` 的单个 RocksDB 实例中,可避免"大量小文件"问题,适合存档数量较多的场景。 + +启用 RocksDB 后端示例: + +```yaml +historyserver.archive.storage.type: ROCKSDB +``` + ## 日志集成 Flink 本身并不提供已完成作业的日志收集功能。 diff --git a/docs/content/docs/deployment/advanced/historyserver.md b/docs/content/docs/deployment/advanced/historyserver.md index 76eaa7c386d..607f08b826b 100644 --- a/docs/content/docs/deployment/advanced/historyserver.md +++ b/docs/content/docs/deployment/advanced/historyserver.md @@ -79,6 +79,19 @@ The contained archives are downloaded and cached in the local filesystem. The lo Check out the configuration page for a [complete list of configuration options]({{< ref "docs/deployment/config" >}}#history-server). +**Archive Storage Backend** + +The HistoryServer supports pluggable local archive storage backends, selected via `historyserver.archive.storage.type`: + +* `FILE` (default): Each archive is unpacked into multiple JSON files under `historyserver.web.tmpdir`. +* `ROCKSDB`: All archives are stored as key-value pairs in a single embedded RocksDB instance under `historyserver.web.tmpdir/rocksdb`. This avoids the "many small files" problem and is recommended when there is a large number of archives. + +Example for enabling the RocksDB backend: + +```yaml +historyserver.archive.storage.type: ROCKSDB +``` + ## Log Integration Flink does not provide built-in methods for archiving logs of completed jobs.
