Need a CLI program to implement cloud level reentrancy protection

fr flag

I have a kubernetes system which must run rake db:migrate before deployment. For reasons, we'd like to do this as an init container instead of a job.

This seems like a more general class of program of "how do I make sure only one of these commands is running at a time, across an entire cloud?"

My thought is to use dynamodb, redis, or similar shared NOSQL solution to implement a lock.

Does anyone know of a tool that does this, before I have to write one?


in flag
Product recommendations are off topic. You can try [].

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.