ydb-platform / ydb

YDB is an open source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions
https://ydb.tech
Apache License 2.0
3.83k stars 532 forks source link

add vdisk evict handler #4608

Closed antonkovalenko closed 1 month ago

StekPerepolnen commented 3 months ago

https://github.com/ydb-platform/ydb/pull/5093

StekPerepolnen commented 3 months ago

@artemmufazalov Just in case, here are two examples how to use new vdisk evict handler. I would suggest that second approach would be easier for implementation

POST :8765/vdisk/evict?group_id=2181038080&group_generation_id=3&fail_realm_idx=0&fail_domain_idx=0
POST :8765/vdisk/evict?vdisk_id=2181038080-3-0-0-0'

this handler return forceRetryPossible=true if retry with admin permissions is possible