forked from TrueCloudLab/frostfs-api
[#122] container: Add epoch field to size announcement
Nodes aggregate size estimation based on container id and epoch number. Estimations are not valid forever. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
3a129a2557
commit
c51f4cd314
1 changed files with 7 additions and 4 deletions
|
@ -318,12 +318,15 @@ message AnnounceUsedSpaceRequest {
|
|||
message Body {
|
||||
// Announcement contains used space information about single container.
|
||||
message Announcement {
|
||||
// Identifier of the container
|
||||
neo.fs.v2.refs.ContainerID container_id = 1;
|
||||
// Epoch number for which container size estimation was produced.
|
||||
uint64 epoch = 1;
|
||||
|
||||
// used_space is a sum of object payused space sizes of specified
|
||||
// Identifier of the container.
|
||||
neo.fs.v2.refs.ContainerID container_id = 2;
|
||||
|
||||
// Used space is a sum of object payload sizes of specified
|
||||
// container, stored in the node. It must not include inhumed objects.
|
||||
uint64 used_space = 2;
|
||||
uint64 used_space = 3;
|
||||
}
|
||||
|
||||
// List of announcements. If nodes share several containers, then
|
||||
|
|
Loading…
Reference in a new issue