forked from TrueCloudLab/frostfs-node
[#2116] metrics: Track physical object capacity in the container
Currently we track based on `PayloadSize`, because it is already stored in the metabase and it is easier to calculate without slowing down the whole system. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com> Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
parent
d65a95a2c6
commit
9513f163aa
11 changed files with 124 additions and 45 deletions
|
@ -49,6 +49,10 @@ func (m *metricsWithID) SetReadonly(readonly bool) {
|
|||
m.mw.SetReadonly(m.id, readonly)
|
||||
}
|
||||
|
||||
func (m *metricsWithID) AddToContainerSize(cnr string, size int64) {
|
||||
m.mw.AddToContainerSize(cnr, size)
|
||||
}
|
||||
|
||||
// AddShard adds a new shard to the storage engine.
|
||||
//
|
||||
// Returns any error encountered that did not allow adding a shard.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue