Skip to content

khepri_machine: Cache effective machine version for faster queries#349

Merged
dumbbell merged 1 commit intov0.17.xfrom
optimize-effective-machine-version-query
Nov 6, 2025
Merged

khepri_machine: Cache effective machine version for faster queries#349
dumbbell merged 1 commit intov0.17.xfrom
optimize-effective-machine-version-query

Conversation

@dumbbell
Copy link
Copy Markdown
Collaborator

@dumbbell dumbbell commented Nov 6, 2025

Why

Using the Ra counters is still expensive, even though it is more efficient than querying the Ra server directly.

How

Now, we cache the effective machine version when the machine is initialised or when a new version is applied. The value is cached in a persistent term.

This fixes a performance bottleneck when under high load.

[Why]
Using the Ra counters is still expensive, even though it is more
efficient than querying the Ra server directly.

[How]
Now, we cache the effective machine version when the machine is
initialised or when a new version is applied. The value is cached in a
persistent term.

This fixes a performance bottleneck when under high load.
@dumbbell dumbbell self-assigned this Nov 6, 2025
@dumbbell dumbbell added the bug Something isn't working label Nov 6, 2025
@dumbbell dumbbell added this to the v0.17.2 milestone Nov 6, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.15%. Comparing base (7183339) to head (aeba63d).
⚠️ Report is 2 commits behind head on v0.17.x.

Additional details and impacted files
@@             Coverage Diff             @@
##           v0.17.x     #349      +/-   ##
===========================================
- Coverage    86.34%   86.15%   -0.20%     
===========================================
  Files           22       22              
  Lines         3450     3460      +10     
===========================================
+ Hits          2979     2981       +2     
- Misses         471      479       +8     
Flag Coverage Δ
erlang-26 86.09% <100.00%> (-0.23%) ⬇️
erlang-27 86.12% <100.00%> (+0.09%) ⬆️
erlang-28 86.09% <100.00%> (-0.23%) ⬇️
os-ubuntu-latest 86.12% <100.00%> (-0.23%) ⬇️
os-windows-latest 86.15% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dumbbell dumbbell marked this pull request as ready for review November 6, 2025 11:06
@dumbbell dumbbell merged commit df19134 into v0.17.x Nov 6, 2025
26 checks passed
@dumbbell dumbbell deleted the optimize-effective-machine-version-query branch November 6, 2025 11:07
@dumbbell dumbbell modified the milestones: v0.17.2, v0.17.3 Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant