Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update rocksDB tuning #451

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

jjyr
Copy link
Collaborator

@jjyr jjyr commented Dec 2, 2021

  1. Remove the block size, use default value(4K). Tuning this value do not affect the performance of our program.
  2. Increase write_buffer_size to 64M, in stress testing we see the error:
Transaction could not check for conflicts for operation at SequenceNumber 11871223343 as the MemTable only contains changes newer than SequenceNumber 11871336085.  Increasing the value of the max_write_buffer_size_to_maintain option could reduce the frequency of this error.

The max_write_buffer_size_to_maintain is setting to -1, so RocksDB will tuning max write buffer to write_buffer_size * max_write_buffer_number.

We increase the write_buffer_size to avoid the error.

@jjyr jjyr requested a review from a team December 2, 2021 17:33
@jjyr jjyr merged commit 1548c00 into godwokenrises:v0.6.10.x Dec 2, 2021
@jjyr jjyr deleted the update-rocksdb-tuning branch December 2, 2021 17:51
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.

1 participant