Bug #16505
closedBug #16382: Improve performance of policy generation writer
Change ZIO runtime ergonomics
Description
An other little PR from the big parent one:
We run all our effects on ZIO
blocking
thread pool, which is a thread pool with unlimited thread number but each time a thread is needed and none available, a new one is created, and unused thread are quickly destroyed. This is not optimal for our use case where almost all of our effects are extremelly short (ie: more writting a file / eval JS than wait for a request to a remote server).
This is the correct way to run effect, see: https://github.com/zio/zio/issues/1275 but it is coslty.
We can make things a bit better while we wait for a smarter runtime by changing the blocking thread pool ergonomics:
- make thread live longer when unused,
- make the default pool size bigger,
- make zio runtime yield less often.
Updated by François ARMAND almost 5 years ago
- Status changed from New to In progress
Updated by François ARMAND almost 5 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder/pull/2705
Updated by François ARMAND almost 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|6ed185b1d975df703d920595a484d256dc7ffb90.
Updated by François ARMAND almost 5 years ago
- Fix check changed from To do to Checked
Updated by Alexis Mousset over 4 years ago
- Name check changed from To do to Reviewed
Updated by Vincent MEMBRÉ over 4 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.0.3 which was released today.