Portal health checking

7442
2
Jump to solution
02-24-2016 06:21 AM
ChrisAdams
Esri Contributor

ArcGIS for Server has a health check URL​ so that it can be determined if there is an issue with the machine or one of the machines in an ArcGIS for Server site.

Is there an equivalent for Portal for ArcGIS? When Portal is configured for High Availability, the documentation just mentions the following. This is not a great way to know if there is an issue with one of the machines:

Check the status of a highly available portal

To check the status of a high availability configuration, use the command line utility and follow these steps:

  1. On any machine in the high availability configuration, log in with the Portal for ArcGIS account (selected in Step 2).
  2. Open a command prompt as an administrator (Run as administrator), browse to <Portal for ArcGIS installation directory>\tools\portalha, and run the portalha.bat tool with the -s command (for example,portalha.bat -s).
  3. Review the messages in the tool to obtain the current status of the high availability configuration.

The output is as follows:

C:\Program Files\ArcGIS\Portal\tools\portalha>portalha.bat -s

Machine '<machine.domain>' is configured for high availability architecture and includes the primary database.

The machine '<machine.domain>' is configured for high availability architecture and includes a standby database.

C:\Program Files\ArcGIS\Portal\tools\portalha>

A health check could be added to the web server by specifying a Portal URL such as the portaladmin site. Is there a better way to detect if a machine is not operational and prompt a failover?

A follow on question is that it doesn't seem possible to health check through a web adaptor. If one machine is down behind the web adaptor, the health check with still show the site as being successful. Do the health checks have to be directed through 6080/6443? If the web adaptor is being used in a reverse proxy configuration, how can you health check two endpoints through these internal ports?

0 Kudos
1 Solution

Accepted Solutions
HarroldSompotan
Esri Contributor

Just wanted to add another alternative is to use this URL when checking the Portal Health and Status https://Portalmachine.com:7443/arcgis/portaladmin/healthCheck or through the Web Adaptor: https://WebAdaptorMachine.com/portal/portaladmin/healthCheck (keep in mind the "C" in healthcheck is case sensitive) 

View solution in original post

2 Replies
JacobBoyle
Occasional Contributor III

there are some URL's in the Portal API now, maybe someone smarter than me can cook up a health page? Geo-Jobe??Admin Tools for ArcGIS Online &amp; Portal

ArcGIS REST API

  https://webadaptor.domain.com/arcgis/portaladmin/federation/servers/validate?f=json

   https://<portaladmin>/machines/status/<machine name>

HarroldSompotan
Esri Contributor

Just wanted to add another alternative is to use this URL when checking the Portal Health and Status https://Portalmachine.com:7443/arcgis/portaladmin/healthCheck or through the Web Adaptor: https://WebAdaptorMachine.com/portal/portaladmin/healthCheck (keep in mind the "C" in healthcheck is case sensitive)