Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a service that has horizontal scaling for when the demand increases. We are having problems with pods being scaled down when demand lessens BEFORE the jobs in that pod are completed.

What is the best practice way to scale down pods but ONLY when all the jobs in a particular pod have completed?

The jobs are not stateless. They are a java ETL process.
We can removed the horizontal scaling if we have to, but it would be nice to have.

What I have tried:

Honestly, I was just assigned this issue and I haven't tried anything, yet. I've been reading up on things like PreStop and TerminationGracePeriodSeconds but wanted some best practice advice.
Posted
Updated 13-May-22 7:45am
Comments
Greg Utas 6-May-22 15:02pm    
Maybe the software that initiates the scaling thinks that your jobs must be stateless, which is the mindless fashion these days.

1 solution

I found something that should work for us. Here's the link I found for the benefit of others
HPA - How to gracefully scale down pods with PreStop hooks - ShyamJos.com[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900