Repository navigation
skip CRC checksumming during diskless full sync with TLS enabled. - #1479
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>
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>
Signed-off-by: Ran Shidlansik <ranshid@amazon.com>
madolson
left a comment
There was a problem hiding this comment.
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.01%
============================================
Files 121 121
Lines 65176 65238 +62
============================================
+ Hits 46264 46321 +57
- Misses 18912 18917 +5
|
|
@talxsha please fix the spellcheck/format issues and also the tests should probably be tagged with cluster:skip |
Signed-off-by: Tal Shachar <talxsha@amazon.com>
Signed-off-by: Tal Shachar <talxsha@amazon.com>
Signed-off-by: Tal Shachar <talxsha@amazon.com>
โฆlkey-io#1479) 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: 1. Running diskless sync on primary. 2. Running diskless load on the replica. 3. Primary-replica connection is integrity checked. Closes valkey-io#1129 --------- Signed-off-by: Tal Shachar <talxsha@amazon.com> Signed-off-by: talxsha <160726520+talxsha@users.noreply.github.com> Signed-off-by: ranshid <88133677+ranshid@users.noreply.github.com> Signed-off-by: Ran Shidlansik <ranshid@amazon.com> Co-authored-by: ranshid <88133677+ranshid@users.noreply.github.com> Co-authored-by: Ran Shidlansik <ranshid@amazon.com>
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