Why is my Spring Boot application taking so long to start in Kubernetes?

0
12
Asked By TechWiz99 On

I'm experiencing issues with my Spring Boot application: it takes around 120 seconds to start when a new pod is launched in my Kubernetes cluster. I'm considering using a readiness probe, but I feel like this is slowing down my load testing process. Is there something I'm missing? Is there a way to speed up the startup of my Spring application?

3 Answers

Answered By DevGuru77 On

You're not alone in this! It's pretty common for Spring Boot applications to take a while to start. Have you thought about switching to Spring Native or Quarkus? Both options compile your code ahead of time and significantly reduce startup time.

Answered By CodeCrafted42 On

It sounds like you have quite a large Java application there! Consider that Spring Boot apps can have a slower startup, but there are ways to improve that. You might want to look into using a startup probe in addition to your readiness probe to help manage your application’s startup timings.

Answered By AppDevMaverick On

I can relate! The winter startup times can be challenging. 😂 But for real, adding a startup probe could really help with those longer processes. It might require some tweaking of timings to get it just right.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.