E52F fix(ds): Add configuration for RocksDB options by ieQu1 · Pull Request #15463 · emqx/emqx · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@ieQu1
Copy link
Member
@ieQu1 ieQu1 commented Jul 1, 2025

Fixes EMQX-14457

Release version: 6.0.0

Summary

In an effort to reduce the memory usage by the internal structures of the RocksDB NIF, this commit adds options that allow user to configure

  1. Block cache size
  2. Memtable size
  3. Maximum number of open files

PR Checklist

  • For internal contributor: there is a jira ticket to track this change
  • The changes are covered with new or existing tests
  • Change log for changes visible by users has been added to changes/ee/(feat|perf|fix|breaking)-<PR-id>.en.md files
  • Schema changes are backward compatible or intentionally breaking (describe the changes and the reasoning in the summary)

@ieQu1 ieQu1 force-pushed the dev/rocksdb-config branch 2 times, most recently from 6045312 to 6f552d7 Compare July 1, 2025 23:13
@ieQu1 ieQu1 force-pushed the dev/rocksdb-config branch from 6f552d7 to a17456a Compare July 2, 2025 12:06
@ieQu1 ieQu1 marked this pull request as ready for review July 2, 2025 12:16
@ieQu1 ieQu1 requested review from a team and keynslug as code owners July 2, 2025 12:16
info/2,
info/1,

insert_wildcard/2,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unused for now.

@codecov-commenter
Copy link
codecov-commenter commented Jul 2, 2025

Codecov Report

Attention: Patch coverage is 63.82979% with 17 lines in your changes missing coverage. Please review.

Project coverage is 81.77%. Comparing base (a97dd23) to head (7b70de9).
Report is 53 commits behind head on master.

Files with missing lines Patch % Lines
...emqx_durable_storage/src/emqx_ds_storage_layer.erl 11.11% 16 Missing ⚠️
apps/emqx/src/emqx_ds_schema.erl 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #15463       +/-   ##
===========================================
+ Coverage    3.81%   81.77%   +77.96%     
===========================================
  Files        1118     1123        +5     
  Lines       80766    82025     +1259     
===========================================
+ Hits         3082    67080    +63998     
+ Misses      77684    14945    -62739     

☔ 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.

@ieQu1 ieQu1 merged commit 8a09758 into emqx:master Jul 2, 2025
306 of 308 checks passed
@emqxqa
Copy link
emqxqa commented Jul 28, 2025

TestExecution

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.

5 participants

0