-
Notifications
You must be signed in to change notification settings - Fork 703
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
skip CRC checksumming during diskless full sync with TLS enabled. #1479
base: unstable
Are you sure you want to change the base?
Conversation
@talxsha before I look into this, lets put some details in the top comment. linking the issue is not what we susually do. |
Also add justification for why we should do this only when TLS is enabled. Given that the network has built in checksumming, I'm still not convinced about the tradeoff we are making given that the steady state replication is not checksummed. |
@madolson should I tag it as a major-decision ? I think it worth discussion. |
For now it's not. It's just an internal one. I would probably just ping PingXie directly and core team if anyone else is interested. |
Signed-off-by: Tal Shachar <talxsha@amazon.com>
…o bypass_crc, encapsulated condition checks for skipping CRC, and chenged connIsTLS condition to connIntegrityChecked in ConnectionType. Some changes in the test as well Signed-off-by: Tal Shachar <talxsha@amazon.com>
Signed-off-by: talxsha <160726520+talxsha@users.noreply.github.com>
src/server.h
Outdated
@@ -1988,6 +1993,7 @@ struct valkeyServer { | |||
char *rdb_filename; /* Name of RDB file */ | |||
int rdb_compression; /* Use compression in RDB? */ | |||
int rdb_checksum; /* Use RDB checksum? */ | |||
int bypass_crc; /* Skip RDB checksum? Applicable only for TLS enabled diskless full sync */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure why do we need to keep this server flag?
Signed-off-by: Tal Shachar <talxsha@amazon.com>
Signed-off-by: ranshid <88133677+ranshid@users.noreply.github.com>
Signed-off-by: ranshid <88133677+ranshid@users.noreply.github.com>
Signed-off-by: ranshid <88133677+ranshid@users.noreply.github.com>
Signed-off-by: ranshid <88133677+ranshid@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@madolson the code seems fine now. would you like to take a quick look as well?
Signed-off-by: Ran Shidlansik <ranshid@amazon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks okay, mostly some nits to improve clarity.
Signed-off-by: talxsha <160726520+talxsha@users.noreply.github.com>
…ecessary metric and added a log instead. Using sendCommandArgv when sendding replica capa Signed-off-by: Tal Shachar <talxsha@amazon.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #1479 +/- ##
============================================
+ Coverage 70.98% 71.00% +0.02%
============================================
Files 120 120
Lines 65061 65090 +29
============================================
+ Hits 46185 46219 +34
+ Misses 18876 18871 -5
|
@talxsha please fix the spellcheck/format issues and also the tests should probably be tagged with cluster:skip |
Implemented a mechanism to eliminate CRC64 checksumming during full sync when not writing to disk (using a connection that has data integrity checks such as TLS), as it adds overhead with minimal benefit.
Nodes can skip CRC calculations when these conditions are met:
Closes #1129