Parallel Resource Loading¶
Enable parallel resource loading to reduce resource sync time when the MSSQL connector manages a large number of databases.
Note
This feature is disabled by default and only takes effect when more than one database is configured in the managed database list. See Manage Resources List for details on configuring the database list.
Setup¶
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to open the
.ymlfile to be edited.If you have multiple connectors, then replace
instance1with the appropriate connector instance name.Bash -
Set the following properties to enable parallel resource loading:
YAML CONNECTOR_MSSQL_LOAD_RESOURCES_MULTITHREADED_ENABLED— Enables parallel per-database resource discovery. Default isfalse.CONNECTOR_MSSQL_LOAD_RESOURCES_DATABASE_THREAD_COUNT— Maximum number of parallel worker threads. Default is3.CONNECTOR_MSSQL_LOAD_RESOURCES_THREAD_POOL_WAIT_TIMEOUT_MINUTES— Maximum minutes to wait for all worker threads to complete. Default is60. Increase to120for large deployments.CONNECTOR_MSSQL_JDBC_MAX_POOL_SIZE— JDBC connection pool size. Must be greater than or equal to the thread count when parallel loading is enabled. Default is15.
-
Once the properties are configured, run the following commands to update your Privacera Manager platform instance:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts. Step 3 - (Optional) Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on. This step is not required if you are updating only connector properties.
-
In PrivaceraCloud portal, navigate to Settings → Applications.
-
On the Connected Applications screen, select MSSQL.
-
Select the pen icon or the Account Name to modify the settings.
-
On the Edit Application screen, go to Access Management → ADVANCED tab.
-
Under Add New Custom Properties, add the following properties:
load.resources.multithreaded.enabled— Enables parallel per-database resource discovery. Default isfalse.load.resources.load.database.thread.count— Maximum number of parallel worker threads. Default is3.load.resources.thread.pool.wait.timeout.minutes— Maximum minutes to wait for all worker threads to complete. Default is60. Increase to120for large deployments.jdbc.maximum.pool.size— JDBC connection pool size. Must be greater than or equal to the thread count when parallel loading is enabled. Default is15.
-
Select SAVE to apply the changes.
- Prev topic: Advanced Configuration