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

[1.1] Expose http2 window size settings as pilot env #17058

Merged
merged 2 commits into from
Sep 13, 2019

Conversation

howardjohn
Copy link
Member

No description provided.

@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Sep 12, 2019
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 12, 2019
@lambdai
Copy link
Contributor

lambdai commented Sep 12, 2019

/lgtm

@@ -986,14 +986,24 @@ func applyUpstreamTLSSettings(env *model.Environment, cluster *apiv2.Cluster, tl
}
}

func setUpstreamProtocol(cluster *apiv2.Cluster, port *model.Port) {
func setUpstreamProtocol(cluster *apiv2.Cluster, port *model.Port, proxy *model.Proxy) {
Copy link
Contributor

Choose a reason for hiding this comment

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

setUpstreamProtocol - proxy is unused (from unparam)

}
i, err := strconv.Atoi(raw)
if err != nil {
log.Warnf("failed to parse PILOT_INITIAL_CONNECTION_WINDOW_SIZE: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should return something here, perhaps the default value. Otherwise we will end up returning whatever strconv returns in the first argument when it fails.

Copy link
Contributor

Choose a reason for hiding this comment

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

This will lookup from and parse the string for each and every cluster? Can we just not cache the value?

@lambdai
Copy link
Contributor

lambdai commented Sep 12, 2019

and this downstream buffer limit:
per_connection_buffer_limit_bytes
https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/lds.proto#envoy-api-msg-listener

@lambdai
Copy link
Contributor

lambdai commented Sep 12, 2019

listener per connection buf limit is default 1MB. It might not be the one in charge of 256MB. Still looking for others

@istio-testing istio-testing added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 12, 2019
@howardjohn
Copy link
Member Author

/retest

@istio-testing
Copy link
Collaborator

@howardjohn: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/istio-pilot-multicluster-e2e.sh 67621af link /test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@duderino duderino merged commit 22f1921 into istio:release-1.1 Sep 13, 2019
@duderino
Copy link
Contributor

Thanks @howardjohn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants