From 866f6271608511c7286387b0b7da8ed32dad0ed6 Mon Sep 17 00:00:00 2001 From: Gaius Date: Thu, 9 Dec 2021 14:30:41 +0800 Subject: [PATCH] docs: dir path (#904) Signed-off-by: Gaius --- docs/en/deployment/configuration/cdn.yaml | 5 +++++ docs/en/deployment/configuration/dfget.yaml | 21 ++++++++++++------- .../deployment/configuration/scheduler.yaml | 10 +++++++++ test/testdata/k8s/proxy.yaml | 1 - 4 files changed, 28 insertions(+), 9 deletions(-) diff --git a/docs/en/deployment/configuration/cdn.yaml b/docs/en/deployment/configuration/cdn.yaml index 4cd2f8aa4ab..b5f53c93582 100644 --- a/docs/en/deployment/configuration/cdn.yaml +++ b/docs/en/deployment/configuration/cdn.yaml @@ -43,6 +43,11 @@ base: # storageMode is the Mode of storage policy, [disk/hybrid] storageMode: disk + # logDir is the log storage directory + # in linux, default value is /var/log/dragonfly + # in macos(just for testing), default value is /Users/$USER/.dragonfly/logs + logDir: "" + # manager configuration manager: addr: "" diff --git a/docs/en/deployment/configuration/dfget.yaml b/docs/en/deployment/configuration/dfget.yaml index 5045ee7d1c5..fe76b354045 100644 --- a/docs/en/deployment/configuration/dfget.yaml +++ b/docs/en/deployment/configuration/dfget.yaml @@ -5,15 +5,20 @@ aliveTime: 0s # daemon gc task running interval gcInterval: 1m0s -# daemon data directory -# in linux, default value is $HOME/.dragonfly/dfget-daemon/ -# in macos(just for testing), default value is /Users/$USER/.dragonfly/dfdaemon/ -dataDir: /var/lib/dragonfly - # daemon work directory, daemon will change current working directory to this -# in linux, default value is $HOME/.dragonfly/dfget-daemon/ -# in macos(just for testing), default value is /Users/$USER/.dragonfly/dfdaemon/ -workHome: /var/lib/dragonfly +# in linux, default value is /usr/local/dragonfly +# in macos(just for testing), default value is /Users/$USER/.dragonfly +workHome: "" + +# cacheDir is dynconfig cache storage directory +# in linux, default value is /var/cache/dragonfly +# in macos(just for testing), default value is /Users/$USER/.dragonfly/cache +cacheDir: "" + +# logDir is the log storage directory +# in linux, default value is /var/log/dragonfly +# in macos(just for testing), default value is /Users/$USER/.dragonfly/logs +logDir: "" # when daemon exit, keep peer task data or not # it is usefully when upgrade daemon service, all local cache will be saved diff --git a/docs/en/deployment/configuration/scheduler.yaml b/docs/en/deployment/configuration/scheduler.yaml index 6657c208991..ec07a036615 100644 --- a/docs/en/deployment/configuration/scheduler.yaml +++ b/docs/en/deployment/configuration/scheduler.yaml @@ -53,6 +53,16 @@ server: # default: 8002 port: 8002 + # cacheDir is dynconfig cache storage directory + # in linux, default value is /var/cache/dragonfly + # in macos(just for testing), default value is /Users/$USER/.dragonfly/cache + cacheDir: "" + + # logDir is the log storage directory + # in linux, default value is /var/log/dragonfly + # in macos(just for testing), default value is /Users/$USER/.dragonfly/logs + logDir: "" + # dynamic data configuration dynConfig: # dynamic data source type diff --git a/test/testdata/k8s/proxy.yaml b/test/testdata/k8s/proxy.yaml index 2b268f95313..c380be349ac 100644 --- a/test/testdata/k8s/proxy.yaml +++ b/test/testdata/k8s/proxy.yaml @@ -8,7 +8,6 @@ data: aliveTime: 0s gcInterval: 1m0s keepStorage: false - dataDir: /root/.dragonfly/dfget-daemon/ workDir: /root/.dragonfly/dfget-daemon/ verbose: true pprof-port: 0