I have 120 files and I have 3 pod running using kubernetes deployment
.
The pods do some manipulate on the files, each pod can handle only 40 files. I need in every moment that the pods monitor & manipulate the files (It's real time system). The pods should restart every 10min's.
The problem: The time was take to the system to be "up" in the pod is 2-3mins, meaning I have around 2-3mins "dead" time without monitoring on files, It's meaning the 3 pod's running 10 mins, then I have pod restart then 2-3min's without "running" pods and overt..
My question is how can I make the pods monitor & manipulate the files every time? What I have been tried Is to set 4 pods instead of 3 and to restart the 4th pod each 3 mins, There is solution for my situation in Kubernetes? i.e to run a new deployment pod after 8min and 2-3 min time to be "up" and then the "old" pod deleted after 10 min