-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
use default bool for enable-var-log-collection #1252
Conversation
config/config-observability.yaml
Outdated
# 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" |
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.
Might be better to do:
- logging.enable-var-log-collection: "false"
And not rely on what implementation has by 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.
+1, updated
Signed-off-by: Huamin Chen <[email protected]>
c7bced8
to
5c11a83
Compare
/lgtm |
/assign @evankanderson |
/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. |
[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 |
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. |
@evankanderson Agreed on both daemonset as well as integration tests. Both are captured as Github issues, sadly waiting for owners :) |
Co-authored-by: Stavros Kontopoulos <[email protected]>
enable-var-log-collection
defaults tofalse
. 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