Skip to content

change default refresh delays and drain durations#733

Closed
rshriram wants to merge 17 commits intomasterfrom
change_defaults
Closed

change default refresh delays and drain durations#733
rshriram wants to merge 17 commits intomasterfrom
change_defaults

Conversation

@rshriram
Copy link
Copy Markdown
Member

Change the default refresh interval, envoy drain duration. The current interval is suitable only for testing (1s). Increasing the default to 30s results in lesser CPU utilization (for Pilot) and better performance.

Release note:

Option to disable mixer policy checks while allowing metrics to be recorded.

@rshriram rshriram added this to the Istio 0.2 milestone Sep 11, 2017
@rshriram rshriram requested a review from andraxylia September 11, 2017 21:31

## Set enableTracing to false to disable request tracing.
enableTracing: true
zipkinAddress: zipkin.{ISTIO_NAMESPACE}:9411
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These settings won't take effect. Please update to the new API definitions. The parser will ignore any undefined fields.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

?
the SHA in pilot's WORKSPACE is at Sep 10th.

    commit = "6838a2bfc42260cf0513552a64a457f1cf39041c",  # Sep 10, 2017
    remote = "https://github.com/istio/api.git",
)```

# its internal configuration from Istio Pilot. Lower refresh delay
# results in higher CPU utilization and potential performance loss in
# exchange for faster convergence. Tweak this value according to your setup.
discoveryRefreshDelay: 30s
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here.

@andraxylia
Copy link
Copy Markdown
Contributor

/lgtm

@istio-merge-robot
Copy link
Copy Markdown

/lgtm cancel //PR changed after LGTM, removing LGTM. @andraxylia @rshriram

@andraxylia andraxylia added the do-not-merge Block automatic merging of a PR. label Sep 11, 2017
@andraxylia
Copy link
Copy Markdown
Contributor

/lgtm cancel

@istio-merge-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
We suggest the following additional approver: andraxylia

Assign the PR to them by writing /assign @andraxylia in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

Copy link
Copy Markdown
Contributor

@kyessenov kyessenov left a comment

Choose a reason for hiding this comment

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

Looks better (but it'd be better to double check test logs that each settings is being applied)

@rshriram
Copy link
Copy Markdown
Member Author

It is not.
envoy-rev0.json --restart-epoch 0 --drain-time-s 2 --parent-shutdown-time-s 3 --service-cluster istio-proxy --service-node sidecar10.32.11.251productpage-v1-3512922263-qgfpn.mixer-test-

I thought we sourced the yamls in the tests

@andraxylia
Copy link
Copy Markdown
Contributor

This configMap has changed in pilot to use a different structure "default".

@rshriram
Copy link
Copy Markdown
Member Author

rshriram commented Sep 11, 2017 via email

@andraxylia
Copy link
Copy Markdown
Contributor

You need to upgrade the pilot SHA to latest master in the same commit, otherwise istioctl kube-inject will fail the validate.

Copy link
Copy Markdown
Contributor

@andraxylia andraxylia left a comment

Choose a reason for hiding this comment

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

You need to run updateVersion.sh for any change in template. Sorry for not noticing earlier.

@andraxylia
Copy link
Copy Markdown
Contributor

Actually, I will approve since I do not want to block the PR, so you can merge it, but please run updateVersions on it.

@rshriram
Copy link
Copy Markdown
Member Author

Pilot sha is now pointing to master. Ran updateVersion.sh as @andraxylia suggested. Lets see if this passes.

@ldemailly
Copy link
Copy Markdown
Member

/retest

TEMP_DIR="/tmp"
GIT_COMMIT=false

## Install constants for Pilot. Do not change
Copy link
Copy Markdown
Contributor

@andraxylia andraxylia Sep 13, 2017

Choose a reason for hiding this comment

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

The changes in this file are not needed, but we can remove them later if the tests pass.
It is enough to have the test infra replace the default values.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep, I realized that.. removed it

@rshriram
Copy link
Copy Markdown
Member Author

defaults are not being applied as per the regex in go files.. @yutongz any inputs?

@yutongz
Copy link
Copy Markdown
Contributor

yutongz commented Sep 13, 2017

Which one is not applied? @rshriram

@rshriram
Copy link
Copy Markdown
Member Author

@yutongz
Copy link
Copy Markdown
Contributor

yutongz commented Sep 13, 2017

Right, so there are two things you need to do:

  1. Your change is in generateRbac() whatever inside, only replace stuff in rbac-beta.yaml, you may want to put all your "replace work" in https://github.com/istio/istio/blob/master/tests/e2e/framework/kubernetes.go#L284

  2. You need to update istio.yaml with the change in pilot. e2e framework directly use istio.yaml or istio-auth.yaml

@ldemailly
Copy link
Copy Markdown
Member

will close, you can redo from fresh/green without SHA changes (or resolve conflicts on this PR if you want but carefully) - reopen if you want to reuse

@ldemailly ldemailly closed this Sep 13, 2017
@rshriram rshriram reopened this Sep 13, 2017
@istio-testing
Copy link
Copy Markdown
Collaborator

@rshriram: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/new-e2e-rbac_no_auth.sh 35534cd link /test new-e2e-rbac_no_auth
prow/e2e-suite-rbac-no_auth.sh 35534cd link /test e2e-suite-rbac-no_auth
prow/e2e-suite-rbac-auth.sh 35534cd link /test e2e-suite-rbac-auth
prow/istio-presubmit.sh bb7ffb1 link /test istio-presubmit
Details

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.

@rshriram rshriram closed this Sep 13, 2017
@ldemailly ldemailly deleted the change_defaults branch September 15, 2017 21:29
mandarjog pushed a commit to mandarjog/istio that referenced this pull request Oct 30, 2017
Former-commit-id: 4a2140d8bbade09a6bd85a4112d83f520a41844f
mandarjog pushed a commit that referenced this pull request Oct 31, 2017
Former-commit-id: 5ad7a1bc16d534f0383445f6ce6603db5726bf90
kyessenov pushed a commit to kyessenov/istio that referenced this pull request Aug 13, 2018
howardjohn added a commit to howardjohn/istio that referenced this pull request Jan 12, 2020
* Sync installer

I was going to wait for the repo merge, but I wanted to fix any failing
tests that may pop up to make that merge smoother

* fix e2e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Block automatic merging of a PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants