Giter Club home page Giter Club logo

Comments (7)

pacoxu avatar pacoxu commented on June 24, 2024 1

You may set it to a quite small duration IIUC.

Zero means no TTL, not expire immediately.

// calculateTTL is a helper for retrieving the updated TTL for an object or
// returning an error if the TTL cannot be calculated. The defaultTTL is
// changed to 1 if less than zero. Zero means no TTL, not expire immediately.
func (e *Store) calculateTTL(obj runtime.Object, defaultTTL int64, update bool) (ttl uint64, err error) {

from kubernetes.

k8s-ci-robot avatar k8s-ci-robot commented on June 24, 2024

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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-sigs/prow repository.

from kubernetes.

pacoxu avatar pacoxu commented on June 24, 2024

kube-apiserver default event ttl is 1h. So etcd will not be filled up by events unless the recent 1 hour events is with a too large amount.

`--event-ttl` duration     Default: 1h0m0s
 Amount of time to retain events.

Another solution is to use separated etcd for events. https://openai.com/index/scaling-kubernetes-to-2500-nodes/ openai blog also include the etcd-servers-overrides flag usage. With this solution, events are saved separately.

--etcd-servers-overrides strings

  | Per-resource etcd servers overrides, comma separated. The individual override format: group/resource#servers, where servers are URLs, semicolon separated. Note that this applies only to resources compiled into this server binary.

from kubernetes.

tooptoop4 avatar tooptoop4 commented on June 24, 2024

@pacoxu can i put ttl as 0? really not interested in the events

from kubernetes.

neolit123 avatar neolit123 commented on June 24, 2024

/sig cli

from kubernetes.

neolit123 avatar neolit123 commented on June 24, 2024

/kind support
/close

https://github.com/kubernetes/kubernetes/blob/master/SUPPORT.md

from kubernetes.

k8s-ci-robot avatar k8s-ci-robot commented on June 24, 2024

@neolit123: Closing this issue.

In response to this:

/kind support
/close

https://github.com/kubernetes/kubernetes/blob/master/SUPPORT.md

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-sigs/prow repository.

from kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.