Mattermost HA migration lock coordination with PostgreSQL advisory locks during leader failover
Migration leadership and lock ownership In a Mattermost high-availability cluster running v8.x, the first node to start acquires a PostgreSQL advisory lock and executes pending database migrations while other nodes block on the same lock. The documentation states that only the leader runs migrations, but it does not specify what happens to the advisory lock