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

fix migrate big key problem and add auth for semi-async #235

Closed

Conversation

left2right
Copy link
Contributor

No description provided.

Copy link
Collaborator

@fancy-rabbit fancy-rabbit left a comment

Choose a reason for hiding this comment

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

emmmm. I submitted #236 to revert your synchronized Recv(), revert the 1k MaxKeySendSize back to 10k.

@@ -8,7 +8,7 @@
#include "strings.h"

const std::string SlotKeyPrefix = "_internal:slotkey:4migrate:";
const size_t MaxKeySendSize = 10 * 1024;
const size_t MaxKeySendSize = 1024;
Copy link
Collaborator

Choose a reason for hiding this comment

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

won't be necessary after Qihoo360/pink@51e4bbe#diff-9b6af85329e3015c44cf81fb59fd1686
take effects in pika?

return -1;
}
// Recv
s = cli->Recv(NULL);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this may bring down performance.
but considering about the condition that large keys are sliced into multiple pieces(batches for migration), it might be the clearest and simplest solution to avoid the possibility of leaving garbage data in socket buffers.

Copy link
Collaborator

Choose a reason for hiding this comment

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

found a way works well when large keys are sliced. see #236

@fancy-rabbit fancy-rabbit mentioned this pull request Jan 18, 2018
@left2right left2right closed this May 16, 2018
chejinge pushed a commit to chejinge/pika that referenced this pull request Oct 27, 2023
….1.3

Improvement: using pikiwidb/rediscache v0.1.3
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