Apologies if I'm just missing something, but I'm trying to understand how prestart.sh might scale to multiple nodes. It looks like it runs before the startup of the underlying fastapi container, but what is preventing it from running multiple times across multiple nodes? If a common database was in use I imagine that would cause issues with alembic or the initial_data.py script (on first startup anyway). Thanks for your help.
Apologies if I'm just missing something, but I'm trying to understand how
prestart.shmight scale to multiple nodes. It looks like it runs before the startup of the underlyingfastapicontainer, but what is preventing it from running multiple times across multiple nodes? If a common database was in use I imagine that would cause issues with alembic or theinitial_data.pyscript (on first startup anyway). Thanks for your help.