GithubHelp home page GithubHelp logo

Comments (5)

graillus avatar graillus commented on June 14, 2024 2

I did some tests on 2 different GKE clusters (kubernetes 1.15):

  • On the first cluster, I created 2 CronJobs, scheduled every minute, one with startingDeadlineSeconds set to 60, the other to 0.
  • On the other cluster, running slighlty modified version of the kube-downscaler (without the set spec.startingDeadlineSeconds to 0 on resume), same CronJobs.
  • Annotated all these CronJobs to make them enter a downtime period for 10 minutes.

Observations after downtime:

  • Only CronJob running with patched downscaler and with original startingDeadlineSeconds different from 0 resumed as expected.
  • Setting the startingDeadlineSeconds to 0 seems to give no chance to CronJobs to schedule new jobs after resume.

Looks like setting the startingDeadlineSeconds to 0 is never a good idea :/

from kube-downscaler.

hjacobs avatar hjacobs commented on June 14, 2024

Related: zalando-incubator/kubernetes-on-aws#3150

from kube-downscaler.

graillus avatar graillus commented on June 14, 2024

Why is the CronJob's spec.startingDeadlineSeconds reset to 0 in the first place ? I guess there is a valid reason behind this, but why not leaving the original value ?

from kube-downscaler.

hjacobs avatar hjacobs commented on June 14, 2024

@graillus I have the same question.

from kube-downscaler.

hjacobs avatar hjacobs commented on June 14, 2024

The fix was released in https://github.com/hjacobs/kube-downscaler/releases/tag/20.4.4

from kube-downscaler.

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.