Customer object counter #843

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:feat/customer_objects_metric into master 2024-09-04 19:51:05 +00:00

Customer object - regular object without splitID (simple object) or last part of complex object (with splitID and parentID, but without children - linking object has children).

Affected metrics - frostfs_node_engine_objects_total{type="customer"} & frostfs_node_engine_container_objects_total{type="customer"}

Closes #838

Customer object - regular object without splitID (simple object) or last part of complex object (with splitID and parentID, but without children - linking object has children). Affected metrics - `frostfs_node_engine_objects_total{type="customer"}` & `frostfs_node_engine_container_objects_total{type="customer"}` Closes #838
dstepanov-yadro force-pushed feat/customer_objects_metric from e4384659f0 to 762df10e49 2023-12-05 14:04:08 +00:00 Compare
dstepanov-yadro force-pushed feat/customer_objects_metric from 762df10e49 to dc90b8e310 2023-12-06 09:10:03 +00:00 Compare
dstepanov-yadro changed title from WIP: Customer object counter to Customer object counter 2023-12-06 09:12:56 +00:00
dstepanov-yadro requested review from storage-core-committers 2023-12-06 09:13:05 +00:00
dstepanov-yadro requested review from storage-core-developers 2023-12-06 09:13:10 +00:00
Owner

It it true that count(customer) <= count(logic) <= count(physical)?

It it true that `count(customer) <= count(logic) <= count(physical)`?
fyrchik approved these changes 2023-12-06 09:19:41 +00:00
@ -20,1 +20,3 @@
objectLogicCounterKey = []byte("logic_counter")
objectPhyCounterKey = []byte("phy_counter")
objectLogicCounterKey = []byte("logic_counter")
objectCustomerCounterKey = []byte("customer_counter")
Owner

Maybe user_counter or root_counter?

Maybe `user_counter` or `root_counter`?
Author
Member

Changed to user

Changed to user
@ -91,3 +91,3 @@
}
s.incObjectCounter(putPrm.Address.Container())
s.incObjectCounter(putPrm.Address.Container(), meta.IsCustomerObject(prm.obj))
Owner

IsCustomerObject sounds cryptic, wouldn't be obvioius if I was new to the codebase.

`IsCustomerObject` sounds cryptic, wouldn't be obvioius if I was new to the codebase.
Author
Member

Changed to user

Changed to user
dstepanov-yadro force-pushed feat/customer_objects_metric from dc90b8e310 to 5662a4dcc6 2023-12-06 10:02:58 +00:00 Compare
Author
Member

It it true that count(customer) <= count(logic) <= count(physical)?

yes

> It it true that `count(customer) <= count(logic) <= count(physical)`? yes
dstepanov-yadro force-pushed feat/customer_objects_metric from 5662a4dcc6 to 045fa423ee 2023-12-06 10:33:34 +00:00 Compare
fyrchik approved these changes 2023-12-06 10:51:42 +00:00
acid-ant approved these changes 2023-12-06 11:11:26 +00:00
dstepanov-yadro force-pushed feat/customer_objects_metric from 045fa423ee to a478050639 2023-12-06 12:44:46 +00:00 Compare
fyrchik approved these changes 2023-12-06 13:29:11 +00:00
fyrchik merged commit a478050639 into master 2023-12-06 13:29:19 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
3 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#843
No description provided.