Coder Social home page Coder Social logo

Comments (3)

rogerioefonseca avatar rogerioefonseca commented on May 29, 2024

haha, I tried to debug but I'm not familiar with go so, now, I'm not able to investigate and help further more.

from pod-reaper.

brianberzins avatar brianberzins commented on May 29, 2024

Interesting case! Given the configuration, I would have expected it to be removed at that 11 minute mark. So in this case the human readable "5 minutes after it gets evicted" doesn't translate well. I think that might require a different rule from what I originally had in mind with MAX_DURATION (which going from memory was designed to be "how long has this pod existed").

It might mean I need to implement a rule for MAX_POD_STATUS_DURATION.
I'm honestly not sure off the top of me head if that information is readily available in the pod, but if it is, the rule would be pretty easy to add.

On the side here, I'm working to rebuild the CI/CD system for this project based on some changes that Docker made that basically broke the CD system for me. Trying to get all that worked out ASAP! Then this'll be high on my "fix or implement new!"

from pod-reaper.

brianberzins avatar brianberzins commented on May 29, 2024

Looking into this, I'm actually a bit surprised to find that there isn't (at least an obvious) timestamp about when pods shift phases at the top level. Right now, the check for eviction uses pod.Status.Reason and the duration check is looking at pod.Status.StartTime (both off the PodStatus object). When looking around for any sort of transition timestamp, I the only other timestamps I found were in an array (not 1:1 mapping) of PodCondition structures. That would make it pretty difficult to specify a rule around because it would probably have to be really specifically "when the pod status is X and there is a PodConditionStatus of Y and that transition happened over Z time ago" feels like it would be difficult to generalize in a consumable way.

Really surprised I didn't see something like "lastPodStatusChangedTime" or something like that...

from pod-reaper.

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.