Skip to content

Disable RavenDB storage prefetching by default - #5832

Draft
ramonsmits wants to merge 1 commit into
masterfrom
ramon/ravendb-disable-prefetching
Draft

Disable RavenDB storage prefetching by default#5832
ramonsmits wants to merge 1 commit into
masterfrom
ramon/ravendb-disable-prefetching

Conversation

@ramonsmits

Copy link
Copy Markdown
Member

During load testing we notices that RavenDB does a lot of read IO. This is caused due to prefetching. We tested with disabling prefetching and index rate remained pretty much identical, ingestion rate slightly improved but read IO was reduced over 5x.

Storage.EnablePrefetching is a server-wide-only RavenDB setting that defaults to true. ServiceControl now disables it by default:

  • Embedded mode (Primary and Audit): --Storage.EnablePrefetching=false is passed via ServerOptions.CommandLineArgs
  • Container image (servicecontrol-ravendb): RAVEN_Storage_EnablePrefetching=false is set as an image ENV, which users can still override

Storage.EnablePrefetching is a server-wide-only RavenDB setting that defaults to true. ServiceControl now disables it by default:

- Embedded mode (Primary and Audit): --Storage.EnablePrefetching=false is passed via ServerOptions.CommandLineArgs
- Container image (servicecontrol-ravendb): RAVEN_Storage_EnablePrefetching=false is set as an image ENV, which users can still override
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.

2 participants