We have a Java app that will be deployed into three instances at the same time due to the pipeline policy, which does the MongoDB clean-up (deletion of unnecessary records). The Java app will use the cron expression to start its cleanup activity, since all three instances will have the same cron expression, the 3 apps will start to do the cleanup in parallel which is going to create a mess. So, I want to avoid all three instances starting at once instead any one instance should be eligible for cleanup.
Can someone help me to resolve this issue?
Aucun commentaire:
Enregistrer un commentaire