Fine Tuning JDBC Connection for Databricks Unity Catalog¶
Optimizing JDBC connection parameters can help improve the stability and performance of your Databricks Unity Catalog integrations. This guide provides general recommendations and steps for adjusting JDBC connection settings to best suit your environment and workload requirements.
Configuration Properties¶
Feature | Description | Default Value | Possible Values |
---|---|---|---|
JDBC Socket Timeout | The number of seconds that the TCP socket waits for a response from the server before raising an error on the request. | 18000 seconds (5 hours) | Any positive integer (in seconds) |
JDBC Connection Timeout | The maximum time in milliseconds to wait when attempting to connect to the database before timing out. | 30000 milliseconds (30 seconds) | Any positive integer (in milliseconds, minimum 250ms) |
Setup¶
Warning
Replace the <PLEASE_CHANGE>
placeholder with appropriate values for your environment.
-
Navigate to Settings → Applications in the Self-Managed Portal.
-
From the list of Connected Applications, select Databricks Unity Catalog.
-
Click the icon or the Account Name to modify the settings.
-
On the Edit Application screen, go to Access Management.
-
Under ADVANCED tab, add the following properties under Add New Custom Properties:
-
Click SAVE to apply the changes.
To configure the JDBC timeout settings, update the following properties in Privacera Manager:
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to open the
.yml
file to be edited:If you have multiple connectors, then replace
instance1
with the appropriate connector instance name.Bash -
Set the following properties to configure the JDBC timeout settings:
-
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 - Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on.
-
In PrivaceraCloud portal, navigate to Settings -> Applications.
-
On the Connected Applications screen, select Databricks Unity Catalog.
-
Click 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:
-
Click SAVE to apply the changes.
Performance Impact
- Longer timeouts may improve stability but can delay error detection.
- Shorter timeouts provide faster error detection but may cause premature failures.
- Test thoroughly in your environment before applying to production.
- Prev topic: Advanced Configuration