Stuck Business Service / top down Discovery and update logic Business Service Status Scheduled JobSummaryOverview The purpose of this KB is to describe why top down discovery may be stuck and how to "unstuck" it or at least get a better understanding of it's progress Pre-requisites In order of Business Service / top down discovery to be completed - the following pre-requisite need to be metthough those are true by default - as we have seen many times - those are the reason for why top down discovery are not getting completed "Update Business Service Status" (or by it's new name "Update App Service Discovery Status") scheduled job need to be enabled"Service Rediscovery Scheduler" scheduled job need to be enabled"Deferred Discovery Cleanup" need to be enabled Top-down discovery progress top down discovery focus on endpoints and move from endpoint to and endpoint. Every endpoint has its Discovery status maintained in sa_endpoint_status. A status has various states WaitingForDiscovery, HostDetection, WaitingForAppDiscovery, AppDiscovery, Completed, DnsLookup We Retrieve all the endpoints status whose state is not Completed and WaitingForDiscovery. For services with endpoints, we retrieved above we update the Discovery Status to PENDING (for bulk discovery endpoints) and IN PROGRESS (endpoints retrieved from sa_endpoint_status) in progress. If the "Update Business Service Status" (or by it's new name "Update App Service Discovery Status") Job is disabled or if the time for execution periodically (default 1 min) if changed it will impact all application services status update and it might happen service remains in discovery state and never moves to complete state. Bulk discovery subtleties We maintain Discovery Status for Bulk Service Mapping Discovery endpoints in discovery_status. The description of status is "Bulk Service Mapping Discovery" We also retrieve all the services which do not have the above endpoints associated with them. For all these services we update the discovery status as DONE as we don't have any endpoints left for these services in discovery.