servicecatalog / crowbar-escm

Crowbar ESCM Installer.
0 stars 0 forks source link

Deployment may start several times and cause corruption on slow systems #42

Closed shimizuf closed 6 years ago

shimizuf commented 6 years ago

On slow systems, systems with high load or a congested internet connection, Chef may trigger the deployment scripts to run again while a previous instance is still running. This can lead to a corrupted database if a second instance stops or restarts containers while the first instance's initdb processes are still running.

We must implement a locking mechanism which avoids stopping or restarting containers if another script is already running.