Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highlights on metrics #740

Closed
wey-gu opened this issue Jul 20, 2021 · 1 comment
Closed

highlights on metrics #740

wey-gu opened this issue Jul 20, 2021 · 1 comment

Comments

@wey-gu
Copy link
Contributor

wey-gu commented Jul 20, 2021

This is worthy mentioned in metrics documentation:

It turns out that stats like num_add_vertices.sum.3600 are not actually vertices count, instead, it's the insert count when the batch size of the insert query is not 1, also, in & out also should be aware of in this case.

Thus, the SUM of num_add_vertices.sum.3600 of all storageD instances is not the actual vertices added of the corresponding period.


https://discuss.nebula-graph.com.cn/t/topic/4880/10?u=wey

Which I quoted @laura-ding 's clarification as below:

现在 metric 统计的 edge 和 vertex 的数量是向storage批量写入的次数,所以当你插入的query含有batch的时候,这个统计就不是实际的点边数量,而是batch数量(当然,边点时候,还有包含每条边的反向边)。假如你每个insert 语句只包含一个点或者一条边,那么,你把集群所有storage统计出来的数据就是点的插入数量,边的话,需要用总数除以2(因为有反向边)

cc @laura-ding

@whitewum
Copy link
Contributor

It looks that the behaviour is a bug, and a bit ugly. you can raise the bug in the nebula repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants