Discuss writecache scenario with no space in the blobstor #117

Open
opened 2023-03-08 23:34:45 +00:00 by snegurochka · 1 comment

Original issue: https://github.com/nspcc-dev/neofs-node/issues/1754

Currently we put the object in the writecache and fail to flush it to the blobstor.
We could check the amount of free space in advance and fail PUT request irregardless of whether we can put an object in the writecache.
cc @realloc

Original issue: https://github.com/nspcc-dev/neofs-node/issues/1754 Currently we put the object in the writecache and fail to flush it to the blobstor. We could check the amount of free space in advance and fail PUT request irregardless of whether we can put an object in the writecache. cc @realloc

Copy of my comments from the linked issue:

Add atomic total size of all not-yet-flushed object in the writecache.
Maintain cache with X sec TTL of free space in blobstor.
Use (2) and (1) to test if an object has high probability of being flushed.
Scenario: put lots of objects until fail, wait some time, remove SSD, all objects must be available.
Copy of my comments from the linked issue: ``` Add atomic total size of all not-yet-flushed object in the writecache. Maintain cache with X sec TTL of free space in blobstor. Use (2) and (1) to test if an object has high probability of being flushed. ``` ``` Scenario: put lots of objects until fail, wait some time, remove SSD, all objects must be available. ```
fyrchik added the
frostfs-node
label 2023-03-23 08:40:32 +00:00
fyrchik added this to the vNext milestone 2023-05-18 08:35:00 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#117
There is no content yet.