Open wu-sheng opened 1 month ago
@hanahmily We could implement most of the logic before the DB side is ready. The only dependencies
db-side-merging
metricMetrics should consider having @DBMergingCapability(function="avg")
annotation to indicate this is a metric could support DB server side merging. But the OAP would rely on the server API to check whether the current function is provided at the DB side.
Search before asking
Description
https://github.com/apache/skywalking/issues/8720 is being planned as a part of the OSPP and BanyanDB milestone. OAP need a kernel-level change to adopt this server-side feature.
Use case
Currently, OAP is using this workflow,
Receiver
->L1 aggregation
->OAP in-cluster hashing calling
->L2 aggregation
->cache + DB merging + persistent
.By leveraging #8720, once the server-side merging functions are supported (even partially), the workflow could be evolved to
Receiver
->L1 aggregation
->no cache and pending persistent
.All these supported metrics would not need to do
L1 aggregation
would deliverincremental metrics
for persistence directly.As OAP could run in the incremental mode, we will face the impacts as there was no latest data.
We could use periodical reading to retrieve metrics for active metrics entities detected by the workflows. <2> will not be supported.
Besides the above-mentioned things, we should consider adding configurations to control the OAP mode
db-side-merging
for metrics supported by BanyanDB. DB metadata query should support to indicate the supported function lists.db-side-merging
is supported.Related issues
No response
Are you willing to submit a pull request to implement this on your own?
Code of Conduct