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

Limit filestore block size to 2MB when encryption is enabled #4046

Merged
merged 1 commit into from Apr 13, 2023

Conversation

neilalexander
Copy link
Member

Some write operations in the filestore require re-encrypting the entire block, so having large blocks can make these operations slow and hurt performance.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner April 13, 2023 15:50
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM - Small tweak to comment if possible before merge.

server/filestore.go Outdated Show resolved Hide resolved
Some write operations in the filestore require re-encrypting the
entire block, so having large blocks can make these operations
slow and hurt performance.

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander merged commit 96fe933 into main Apr 13, 2023
2 checks passed
@neilalexander neilalexander deleted the neil/encblocksize branch April 13, 2023 16:24
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.

None yet

2 participants