-
Notifications
You must be signed in to change notification settings - Fork 312
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(duplication): dup request is rejected by remote cluster due to max_allowed_write_size
#1841
fix(duplication): dup request is rejected by remote cluster due to max_allowed_write_size
#1841
Conversation
What's the relationship between the newly added config and |
If we only consider
We can see it clearly that request_body_size(master cluster send to backup cluster) is greater than max_allowed_write_size. |
|
1.Because I'm sorry that what I said above caused ambiguity. |
Is it necessary to add the new config? Can the issue be resolved by adjust |
In this patch, a new config An alternative way is to set DSN_TAG_VARIABLE(max_allowed_write_size, FT_MUTABLE), then you can change the value by HTTP (e.g. |
If the maintainer of the duplication clusters config |
How about limiting the message size separately for common client write operations and duplication write operations, you can distinguish them by rpc code, then use corresponding limits? |
The same purpose can be achieved through the configuration of operation and maintenance personnel. But I think it is better to provide some support on the Pegasus server side. |
good idea ! I will resubmit this pr in rpc related logic later~ |
@ninsmiracle Please try to rebase the master branch. |
5acd593
to
dea5a69
Compare
max_allowed_write_size
max_allowed_write_size
max_allowed_write_size
What problem does this PR solve?
#1840
What is changed and how does it work?
Add config
dup_max_allowed_write_size
to restrict the size of dup request in case that the request is reject by remote cluster.Side effects
New configuration is added:
[replication] + dup_max_allowed_write_size = 1048576