HOW TO
In a highly available Portal for ArcGIS deployment, administrators may need to determine which portal machine is acting as primary or standby when troubleshooting replication or synchronization issues. Highly available Portal deployments rely on PostgreSQL replication between machines. When replication or synchronization issues occur, validating backend role assignment helps confirm which machine is acting as primary or standby.
Use the following workflow when

Note: If the username is not consistent for all local connections, use the one associated with 127.0.0.1/32.
psql.exe -U <database_user> -d gwdb -p 7654 -c "select pg_is_in_recovery();"
Note: This command is read only. It does not modify portal data.
Note: '-p 7654' refers to the PostgreSQL port.
Note: This command is written for Windows, which does not require ./ before psql.exe.

Article ID: 000040488
Get help from ArcGIS experts
Start chatting now