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

use default bool for enable-var-log-collection #1252

Merged
merged 1 commit into from
Jun 18, 2018

Conversation

rootfs
Copy link
Contributor

@rootfs rootfs commented Jun 18, 2018

enable-var-log-collection defaults to false. Once turned on, logging sidecars are created, causing pod startup latency increase.

This change reduces startup latency from ~14 seconds to ~3 seconds on a cold start.

thanks @markusthoemmes for his inspiration in investigating latency.

Restore default and add more comments

Fixes #

Proposed Changes

Release Note

Comment out logging.enable-var-log-collection config for controller.

@google-prow-robot google-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 18, 2018
# enable-var-log-collection defaults to false. A fluentd sidecar
# will be set up to collect var log if this flag is true.
# uncomment the following to turn on the flag
# logging.enable-var-log-collection: "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be better to do:

-  logging.enable-var-log-collection: "false"

And not rely on what implementation has by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

+1, updated

@rootfs rootfs force-pushed the restore-default-logging branch from c7bced8 to 5c11a83 Compare June 18, 2018 19:07
@mdemirhan
Copy link
Contributor

/lgtm
/approve

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2018
@rootfs
Copy link
Contributor Author

rootfs commented Jun 18, 2018

/assign @evankanderson

@evankanderson
Copy link
Member

/approve

This feels like it would be better handled by a PodPreset.

Is this a temporary, or permanent solution? The lack of easy access to logs is a [major observability problem for serverless architectures](too lazy to cite), so centralized logging seems like a useful way to address this.

One other way which we could address this which would avoid creating so many pods would be to run the log collector as a DaemonSet, and then using a PodPreset to map volumes from the DaemonSet into each targeted Pod.

Much of this work may also be applicable to upstream k8s work (observation).

/end shouting into the void.

@google-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evankanderson, mdemirhan, rootfs

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-prow-robot google-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 18, 2018
@evankanderson
Copy link
Member

This feels like it should have broken an integration test -- we should have some tests for the logs aggregation that verify that logs from controlled and monitored pods end up in a storage system.

@google-prow-robot google-prow-robot merged commit b27b161 into knative:master Jun 18, 2018
@mdemirhan
Copy link
Contributor

@evankanderson Agreed on both daemonset as well as integration tests. Both are captured as Github issues, sadly waiting for owners :)

@rootfs rootfs mentioned this pull request Jul 17, 2018
skonto added a commit to skonto/serving that referenced this pull request Sep 26, 2022
nak3 pushed a commit to nak3/serving that referenced this pull request Nov 10, 2022
nak3 pushed a commit to nak3/serving that referenced this pull request Nov 10, 2022
openshift-merge-robot pushed a commit to openshift-knative/serving that referenced this pull request Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants