1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2025-06-29 00:02:48 +02:00
seaweedfs/weed/filer/ydb
Aleksey Kosov 4511c2cc1f
Changes logging function (#6919)
* updated logging methods for stores

* updated logging methods for stores

* updated logging methods for filer

* updated logging methods for uploader and http_util

* updated logging methods for weed server

---------

Co-authored-by: akosov <a.kosov@kryptonite.ru>
2025-06-24 08:44:06 -07:00
..
doc.go go fmt 2022-09-14 23:06:44 -07:00
readme.md add options to scaffold 2022-05-03 22:54:31 +05:00
ydb_queries.go ydb filer improvements (#6890) 2025-06-19 14:16:01 -07:00
ydb_store.go Changes logging function (#6919) 2025-06-24 08:44:06 -07:00
ydb_store_kv.go ydb filer improvements (#6890) 2025-06-19 14:16:01 -07:00
ydb_store_test.go ydb filer improvements (#6890) 2025-06-19 14:16:01 -07:00
ydb_types.go ydb filer improvements (#6890) 2025-06-19 14:16:01 -07:00

YDB

database: https://github.com/ydb-platform/ydb

go driver: https://github.com/ydb-platform/ydb-go-sdk

options:

[ydb]
enabled=true
dsn=grpcs://ydb-ru.yandex.net:2135/?database=/ru/home/username/db
prefix="seaweedfs"
useBucketPrefix=true
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

  • YDB_CONNECTION_STRING="grpcs://endpoint/?database=database"

  • i test using this dev database: make dev_ydb