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
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.
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.
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
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically