Roles APC needs
For every Apache Airflow Deployment, APC requires the following on the Deployment’s metadata database:- An owner role on the metadata database, so APC can manage the schema and switch
CONNECTprivileges between the two login roles during failover. - A connection-terminator role that can terminate active sessions for the two login roles, so APC can fence the source data plane during failover without needing full access to those login roles.
- Membership in both of these roles for the deployment orchestrator database user.
CONNECT on the metadata database.
PostgreSQL example
For a Deployment whose metadata database isairflow_db_<deployment> and whose per-data-plane login roles are dp1_user_<deployment> and dp2_user_<deployment>, the full setup is:
commander_user with the deployment orchestrator database user configured for your APC installation, and <deployment> with the identifier you use for each Airflow Deployment.