-
Notifications
You must be signed in to change notification settings - Fork 284
Conversation
c066be4
to
02cbc34
Compare
Why do you think it is safe to run TaskArchiver service in a separate thread? By looking at |
Same question for |
Ok, I had a closer look at it, and it's not thread safe. But very little work is required to make it so, so I'll do it. |
No, it calls |
Did you have a chance to run it and check performance behavior? |
Yes and it seems that it's working good. |
Codecov Report
@@ Coverage Diff @@
## develop #3661 +/- ##
===========================================
+ Coverage 87.78% 90.01% +2.23%
===========================================
Files 234 234
Lines 22090 22079 -11
===========================================
+ Hits 19391 19875 +484
+ Misses 2699 2204 -495 |
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.
DoWorkService
will now be called every second in the main thread. Please profile it when Golem is under load, since that service used to be a big performance hit.
252ea19
to
a406e27
Compare
Are we going to merge that or not? |
I'm working on properly profiling golem. It means I need to learn a bit of this stuff. When I'm done I'll share my results and write a guide for others. |
Awesome. |
a406e27
to
75e94bb
Compare
The same change, but rebased onto b0.22 is in branch LoopingCallService_sync_by_default_b0.22 |
IMvHO it this change looks promising. Were there any conclusions from profiling/running under load? |
I didn't got to testing under serious load (like mainnet network), because I was moved to other tasks back then. Now our QA team is testing this (but without profiling), to check if there are any regressions. |
For these services I think it's OK to let them run in threads:
fixes #3660
fixes #3245
resolves #2851
fixes #5083