Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

239
Views
Why do we use startup probe and not the livenes probe with initialDelaySeconds parameter

I have a question regarding the status probe. When I read the documentation, I understand that it's made mainly for applications that takes a long time to start (like legacy applications). So in order to not kill the application (the container running it), we set up a startup probe to for example 5 minutes so the application has all the time to be able to start. My question is : why can't we just set a liveness probe ? We could use the initialDelaySeconds parameter and set its value to something like 300 seconds ?

Thank you for your answers

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Note the example given in kubernetes docs:

livenessProbe:
  httpGet:
    path: /healthz
    port: liveness-port
  failureThreshold: 1
  periodSeconds: 10

startupProbe:
  httpGet:
    path: /healthz
    port: liveness-port
  failureThreshold: 30
  periodSeconds: 10

The key difference between two probes here is not the delay - it's the fault tolerance. For startup probe, it's expected that app starts slow... sometimes. But most of the time it might be fast enough actually!

So the startup probe tries 30 times, waiting 10 seconds between each attempt, and considers its job completed on the first success, passing the token to liveness probe immediately after that.

With your approach, even if app has already started, the very first liveness probe on that won't be fired until 300 seconds have passed - regardless of whether or not app actually took ~300 seconds to start.

Of course, for apps that always require considerable amount of startup time, this approach might make sense.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!