Updates enforcement policy to match the one from the client#6629
Merged
deepthi merged 1 commit intovitessio:masterfrom Aug 26, 2020
Merged
Updates enforcement policy to match the one from the client#6629deepthi merged 1 commit intovitessio:masterfrom
deepthi merged 1 commit intovitessio:masterfrom
Conversation
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
deepthi
reviewed
Aug 26, 2020
| // EnforcementPolicy MinTime that sets the keepalive enforcement policy on the server. | ||
| // This is the minimum amount of time a client should wait before sending a keepalive ping. | ||
| GRPCKeepAliveEnforcementPolicyMinTime = flag.Duration("grpc_server_keepalive_enforcement_policy_min_time", 5*time.Minute, "gRPC server minimum keepalive time") | ||
| GRPCKeepAliveEnforcementPolicyMinTime = flag.Duration("grpc_server_keepalive_enforcement_policy_min_time", 10*time.Second, "gRPC server minimum keepalive time") |
Collaborator
There was a problem hiding this comment.
I think in addition to changing the default, we should also force the value if it violates the constraint we want to impose (that PolicyMinTime <= grpc_keepalive_timeout). Line 157.
Member
Author
There was a problem hiding this comment.
Hmm I'm not sure if it should be up to us to do this kind of validations. I think that could be a slippery slope. Two things come to mind:
- I think we already have many other settings that could create conflict if not configured correctly that we are not doing this.
- Even if we add that validation we can't prevent that vtgates are configured incorrectly in respect to the flags that the user provides to the tablet (e.g you could configure the vtgates to be 10s and enforcement policy of 10s; then tablets to be 5s / 5s. The constraint you are proposing won't catch that.
Collaborator
There was a problem hiding this comment.
Valid points. We can merge this as-is.
deepthi
approved these changes
Aug 26, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Desc
Tests