aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-06 01:51:28 -0700
committerchrislu <chris.lu@gmail.com>2022-05-06 01:51:28 -0700
commitb2a43dd044123d244be26c87155187d211be1c49 (patch)
tree7dc5edc901f204b2da91f245eb44abae1b04df29 /weed/command
parentd5fe5d12b74d65a65138de62e9d98cfb3bac14de (diff)
parenta69bf53405d703f29f7b8ca358c67840c2876499 (diff)
downloadseaweedfs-b2a43dd044123d244be26c87155187d211be1c49.tar.xz
seaweedfs-b2a43dd044123d244be26c87155187d211be1c49.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/imports.go1
-rw-r--r--weed/command/scaffold/filer.toml13
2 files changed, 14 insertions, 0 deletions
diff --git a/weed/command/imports.go b/weed/command/imports.go
index 5b3195907..04079b162 100644
--- a/weed/command/imports.go
+++ b/weed/command/imports.go
@@ -32,4 +32,5 @@ import (
_ "github.com/chrislusf/seaweedfs/weed/filer/redis2"
_ "github.com/chrislusf/seaweedfs/weed/filer/redis3"
_ "github.com/chrislusf/seaweedfs/weed/filer/sqlite"
+ _ "github.com/chrislusf/seaweedfs/weed/filer/ydb"
)
diff --git a/weed/command/scaffold/filer.toml b/weed/command/scaffold/filer.toml
index 0a505bbdc..595fb2e62 100644
--- a/weed/command/scaffold/filer.toml
+++ b/weed/command/scaffold/filer.toml
@@ -295,6 +295,19 @@ password=""
# skip tls cert validation
insecure_skip_verify = true
+[ydb] # https://ydb.tech/
+enabled = false
+dsn = "grpc://localhost:2136?database=/local"
+prefix = "seaweedfs"
+useBucketPrefix = true # Fast Bucket Deletion
+poolSizeLimit = 50
+dialTimeOut = 10
+
+# Authenticate produced with one of next environment variables:
+# YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=<path/to/sa_key_file> — used service account key file by path
+# YDB_ANONYMOUS_CREDENTIALS="1" — used for authenticate with anonymous access. Anonymous access needs for connect to testing YDB installation
+# YDB_METADATA_CREDENTIALS="1" — used metadata service for authenticate to YDB from yandex cloud virtual machine or from yandex function
+# YDB_ACCESS_TOKEN_CREDENTIALS=<access_token> — used for authenticate to YDB with short-life access token. For example, access token may be IAM token
##########################
##########################