-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Expose etcd compaction time via environmental variable in GCE #59106
Expose etcd compaction time via environmental variable in GCE #59106
Conversation
wojtek-t
commented
Jan 31, 2018
•
edited
Loading
edited
@@ -828,6 +828,11 @@ EOF | |||
if [ -n "${KUBE_APISERVER_LIVENESS_PROBE_INITIAL_DELAY_SEC:-}" ]; then | |||
cat >>$file <<EOF | |||
KUBE_APISERVER_LIVENESS_PROBE_INITIAL_DELAY_SEC: $(yaml-quote ${KUBE_APISERVER_LIVENESS_PROBE_INITIAL_DELAY_SEC}) | |||
EOF | |||
fi | |||
if [ -n "${ETCD_COMPACTION_INTERVAL_SEC:-}" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want to also expose this in config-(test}default).sh files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily. This isn't needed to make it useful.
I mean, you can set it without doing anything to config-test/default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I understand. I was asking because it gives more visibility for the option there.
I'm fine either way though.
/lgtm |
/hold [I need to verify if that works correctly.] |
@@ -167,6 +167,11 @@ | |||
{% set enable_garbage_collector = "--enable-garbage-collector=" + pillar['enable_garbage_collector'] -%} | |||
{% endif -%} | |||
|
|||
{% set etcd_compaction_interval = "" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use the _sec
suffix, since you're appending "s" to the value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed partially (to make it compatible with there is for kube_apiserver_request_timeout_sec).
BTW - it seems that we no longer have proper support for those pillars, so we should probably get rid of them completely...
19a53da
to
617321e
Compare
OK - I verified that it works in my test cluster. /unhold |
/test pull-kubernetes-e2e-gke |
/retest |
@wojtek-t: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shyamjvs, wojtek-t The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
#59106-upstream-release-1.8 Automatic merge from submit-queue. Automated cherry pick of #51765 #59106 upstream release 1.8 Cherry pick of #51765 #59106 on release-1.8. #51765 : Add an option for turning on/off compaction from apiserver in etcd3 mode #59106 : Expose etcd compaction time via environmental variable in GCE