-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Support prepare and save metrics concurrency #7153
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7153 +/- ##
============================================
+ Coverage 53.56% 57.65% +4.08%
+ Complexity 4294 4275 -19
============================================
Files 1887 1021 -866
Lines 40709 26243 -14466
Branches 4572 2605 -1967
============================================
- Hits 21807 15130 -6677
+ Misses 17827 9776 -8051
- Partials 1075 1337 +262
Continue to review full report at Codecov.
|
You should update the changelog. |
...r-core/src/test/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimerTest.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
And CIs fail, please recheck. |
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
…/server/core/storage/PersistenceTimer.java Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
...ver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/BlockingBatchQueue.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Outdated
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Show resolved
Hide resolved
...erver-core/src/main/java/org/apache/skywalking/oap/server/core/storage/PersistenceTimer.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, It's more clear than before.
@a1vin-tian Before merge, could you run this latest codes on prod or test env, let's see how self observability looks like. |
Okay, I will do it these two days. |
@a1vin-tian Thank you so much for your good polish, patient, and keeping testing in real env. I am going to merge this. |
…alking into id-read-optimization * 'id-read-optimization' of https://github.com/apache/skywalking: Support prepare and save metrics concurrency (#7153) Update MetricsPersistentWorker.java # Conflicts: # oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/worker/MetricsPersistentWorker.java
… and concurrency process (#7318) The key logic behinds all these is, metrics persistence is fully asynchronous. * The core/maxSyncOperationNum setting(added in 8.5.0) is removed due to metrics persistence is fully asynchronous. * The core/syncThreads setting(added in 8.5.0) is removed due to metrics persistence is fully asynchronous. * Optimization: Concurrency mode of execution stage for metrics is removed(added in 8.5.0). The only concurrency of prepare stage is meaningful and kept. * Remove the outside preparedRequest list initialization, worker instance could always build a suitable size list in the first place (Reduce Array.copy and GC load a little).
CHANGES
log.