Put it on every DDL statement in production and retry, so a waiting ALTER TABLE does not queue up all other queries behind it.
lock_timeout
A setting that makes a statement give up with an error if it waits too long for a lock.
Put it on every DDL statement in production and retry, so a waiting ALTER TABLE does not queue up all other queries behind it.