Skip to content

Commit

Permalink
fix: update WAL default disk path
Browse files Browse the repository at this point in the history
Close #2444.
  • Loading branch information
coanor committed Nov 1, 2024
1 parent 2637249 commit 42df948
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/export/doc/zh/datakit-conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ Kubernetes 下部署相关配置参见[这里](datakit-daemonset-deploy.md#env-d
fail_cache_clean_interval = "30s" # duration for clean fail uploaded data
```

磁盘文件位于 Datakit 安装目录的 *data/dw-wal* 目录下:
磁盘文件位于 Datakit 安装目录的 *cache/dw-wal* 目录下:

```shell
/usr/local/datakit/data/dw-wal/
/usr/local/datakit/cache/dw-wal/
├── custom_object
│   └── data
├── dialtesting
Expand Down
4 changes: 2 additions & 2 deletions internal/export/non_input_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ func envDataway() []*inputs.ENVInfo {
{
ENVName: "ENV_DATAWAY_WAL_PATH",
Type: doc.String,
Desc: "Set WAL disk path, default path is *data/dw-wal* under Datakit install path[:octicons-tag-24: Version-1.60.0](changelog.md#cl-1.60.0)",
DescZh: "设置 WAL 磁盘目录,默认为 Datakit 安装目录下的 *data/dw-wal* [:octicons-tag-24: Version-1.60.0](changelog.md#cl-1.60.0)",
Desc: "Set WAL disk path, default path is *cache/dw-wal* under Datakit install path[:octicons-tag-24: Version-1.60.0](changelog.md#cl-1.60.0)",
DescZh: "设置 WAL 磁盘目录,默认为 Datakit 安装目录下的 *cache/dw-wal* [:octicons-tag-24: Version-1.60.0](changelog.md#cl-1.60.0)",
},

{
Expand Down
2 changes: 1 addition & 1 deletion internal/io/dataway/dw.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func (dw *Dataway) doInit() error {
}

if dw.WAL.Path == "" {
dw.WAL.Path = filepath.Join(datakit.DataDir, "dw-wal")
dw.WAL.Path = filepath.Join(datakit.CacheDir, "dw-wal")
}

return nil
Expand Down

0 comments on commit 42df948

Please sign in to comment.