You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1020 B

  1. ## YDB
  2. database: https://github.com/ydb-platform/ydb
  3. go driver: https://github.com/ydb-platform/ydb-go-sdk
  4. options:
  5. ```
  6. [ydb]
  7. enabled=true
  8. dsn=grpcs://ydb-ru.yandex.net:2135/?database=/ru/home/username/db
  9. prefix="seaweedfs"
  10. useBucketPrefix=true
  11. poolSizeLimit=50
  12. dialTimeOut = 10
  13. ```
  14. Authenticate produced with one of next environment variables:
  15. * `YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=<path/to/sa_key_file>` — used service account key file by path
  16. * `YDB_ANONYMOUS_CREDENTIALS="1"` — used for authenticate with anonymous access. Anonymous access needs for connect to testing YDB installation
  17. * `YDB_METADATA_CREDENTIALS="1"` — used metadata service for authenticate to YDB from yandex cloud virtual machine or from yandex function
  18. * `YDB_ACCESS_TOKEN_CREDENTIALS=<access_token>` — used for authenticate to YDB with short-life access token. For example, access token may be IAM token
  19. * `YDB_CONNECTION_STRING="grpcs://endpoint/?database=database"`
  20. * i test using this dev database:
  21. `make dev_ydb`