2022-05-01 20:28:58 +08:00
|
|
|
## YDB
|
|
|
|
|
|
|
|
database: https://github.com/ydb-platform/ydb
|
2022-05-02 05:07:47 +08:00
|
|
|
|
2022-05-01 20:28:58 +08:00
|
|
|
go driver: https://github.com/ydb-platform/ydb-go-sdk
|
|
|
|
|
|
|
|
options:
|
|
|
|
|
|
|
|
```
|
|
|
|
[ydb]
|
|
|
|
enabled=true
|
2022-05-02 05:07:47 +08:00
|
|
|
dsn=grpcs://ydb-ru.yandex.net:2135/?database=/ru/home/username/db
|
2022-05-02 01:28:55 +08:00
|
|
|
prefix="seaweedfs"
|
|
|
|
useBucketPrefix=true
|
2022-05-02 05:07:47 +08:00
|
|
|
poolSizeLimit=50
|
2022-05-04 01:54:31 +08:00
|
|
|
dialTimeOut = 10
|
2022-05-01 20:28:58 +08:00
|
|
|
```
|
|
|
|
|
2022-05-02 05:07:47 +08:00
|
|
|
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"`
|
2022-05-01 20:28:58 +08:00
|
|
|
|
2022-05-02 05:07:47 +08:00
|
|
|
* i test using this dev database:
|
2022-05-01 20:28:58 +08:00
|
|
|
`make dev_ydb`
|