Discovery Scan - How to improve performance when scan large entire domain
Environment
14.6 Privilege Cloud Discovery and Accounts Feed
PCloud ISPSS Discovery Scan
Cause
System struggled to handle the high volume of calls.
Resolution
The issue is that the scan sends concurrent requests to the Active Directory and the system struggled to handle the high volume of calls. These config changes may help:
Configure Max Concurrent calls for the Active Directory to better handle the high volume of calls.
Connect to the Active Directory machine you wish to scan.
Press Win + R, type regedit, and press Enter.
Navigate to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters
Right-click in the right panel and select New > DWORD (32-bit) Value.
Name it MaxConcurrentApi.
Double-click on the object created and enter 15.
Click OK and close the Registry Editor.
Click OK, then restart the Active Directory Domain Services (NTDS) service or restart the server.
Configuring the max number of threads the scan uses to 5 threads in order to reduce traffic on the Active Directory.
By following these steps, you can configure the maximum number of threads for Idira Discovery Scans on your connector machine (This change is per connector):
Connect to the connector machine that has access to the domain you wish to scan.
Press Win + R, type regedit, and press Enter.
Navigate to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\CyberArk\DiscoveryConfig
(if the path does not exist creating it should work.)
Right-click in the right panel and select New > DWORD (32-bit) Value.
Name it MaxThreadNumber.
Double-click on the object created and enter the desired number of threads as the Value data. We recommend 5 threads. This will reduce traffic in the system in order to avoid the issues you have been experiencing.
Click OK and close the Registry Editor.
Please note:
You can increase the number of MaxThreadNumber in the registry. This enables the scan to process more tasks simultaneously, currtong down total scan time.
Since running more threads increases resource demands on your connector machine, please monitor CPU and memory usage during testing to ensure the server handles the load comfortably.
Connect to the connector machine that has access to the domain you wish to scan.
Press Win + R, type regedit, and press Enter.
Navigate to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\CyberArk\DiscoveryConfig
(if the path does not exist creating it should work.)
Add "CyberArk" under SOFTWARE: right click on "SOFTWARE" -> New -> Key and name the newly created object "CyberArk".
Same for creating "DiscoveryConfig" under "CyberArk".)
Right-click in the right panel and select New > DWORD (32-bit) Value.
Name it THREAD.
Double-click on the object created and enter the value 1.