Skip to content

feat: added hwbench for node during startup#1394

Merged
Klapeyron merged 1 commit into
mainfrom
feat/hardware_benchmarking
Apr 24, 2026
Merged

feat: added hwbench for node during startup#1394
Klapeyron merged 1 commit into
mainfrom
feat/hardware_benchmarking

Conversation

@Klapeyron

@Klapeyron Klapeyron commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Overview

Add Polkadot SDK-style hardware benchmark checks to midnight-node startup.

The node now measures hardware on startup, logs the results, warns when authority hardware is below the reference requirements, forwards the data to telemetry, and supports --no-hardware-benchmarks to disable the check.

2026-04-23 14:58:42.590  INFO            main sc_sysinfo: 🏁 CPU single core score: 957.00 MiBs, parallelism score: 751.61 MiBs with expected cores: 8    
2026-04-23 14:58:42.590  INFO            main sc_sysinfo: 🏁 Memory score: 40.81 GiBs    
2026-04-23 14:58:42.590  INFO            main sc_sysinfo: 🏁 Disk score (seq. writes): 2.88 GiBs    
2026-04-23 14:58:42.590  INFO            main sc_sysinfo: 🏁 Disk score (rand. writes): 405.20 MiBs    
2026-04-23 14:58:42.590  WARN            main midnight_node::service: ⚠️  The hardware does not meet the minimal requirements Failed checks: BLAKE2-256(expected: 1000.00 MiBs, found: 957.00 MiBs), Rnd Write(expected: 420.00 MiBs, found: 405.20 MiBs),  for role 'Authority'.    

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Please describe any additional testing aside from CI:

  • Additional tests are provided (if possible)

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

@Klapeyron Klapeyron self-assigned this Apr 23, 2026
@Klapeyron Klapeyron force-pushed the feat/hardware_benchmarking branch 4 times, most recently from 266902b to 8aec878 Compare April 23, 2026 12:18
@Klapeyron Klapeyron changed the title feat: added hwbench for validator nodes feat: added hwbench for node during startup Apr 23, 2026
@Klapeyron Klapeyron marked this pull request as ready for review April 23, 2026 12:24
@Klapeyron Klapeyron requested a review from a team as a code owner April 23, 2026 12:24
Signed-off-by: Tomasz Bartos <tomasz.bartos@shielded.io>
@Klapeyron Klapeyron force-pushed the feat/hardware_benchmarking branch from 8aec878 to 3b1a576 Compare April 23, 2026 13:03
@Klapeyron Klapeyron added this pull request to the merge queue Apr 24, 2026
Merged via the queue into main with commit 6c00b62 Apr 24, 2026
33 checks passed
@Klapeyron Klapeyron deleted the feat/hardware_benchmarking branch April 24, 2026 06:47
@Klapeyron Klapeyron mentioned this pull request May 11, 2026
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run the standard Substrate hardware benchmark checks automatically when midnight-node starts

2 participants