Area: Product Issues
Sub-Area: Performance Degradation / Authorization
Applies to: OSS + Cloud
Issue
On DataHub Cloud v1.1.3, every user on an instance can see the UI slow down at the same time. The home page and entity pages take many seconds to load or fail to load, and search is slow or times out. The slowdown is worst when many people use DataHub at once.
You Might Be Asking
- Why is my DataHub instance slow for every user at the same time?
- Is there a fix for slowness on DataHub Cloud v1.1.3?
- Which version contains the fix, and what else changes when I upgrade?
- I run DataHub myself. Is there a v1.1.4 for me?
- Should I filter the groups I ingest from Okta to fix this?
Cause
Before the fix, DataHub repeated authorization work many times inside a single request. Each privilege check resolved the same resource again, fetched the user's group and role membership again, and looked up asset attributes such as the domain hierarchy again (up to 9 times across privilege checks). A page that checks access on many assets ran this work over and over. The extra work happens on each request, so it adds up when many people use DataHub at once.
The fix changes the authorization path for each request, not a background job:
- Each resource is resolved once per request.
- Group and role membership is fetched once at the start of the request and shared across all checks.
- Asset attributes are resolved once per request.
Solution
-
Check your DataHub version. In the left navigation bar, open Resources. The last item in that menu shows your DataHub version.
-
Upgrade to a version that has the fix.
- DataHub Cloud: the fix shipped in the v1.1.4 hotfix, which is built on v1.1.3. It is also in v2.0.1 and every later Cloud release. v2.0.0 does not have it. Contact DataHub Support to schedule the upgrade. DataHub runs Cloud upgrades for you.
- Self-hosted DataHub: there is no open-source v1.1.4, so don't set an image tag of v1.1.4. Cloud and open-source DataHub use different version numbers. The same authorization changes ship in open-source v1.7.0 and later. Earlier open-source releases, including v1.6.0.x, do not have them. To upgrade with Helm, set
global.datahub.versionto the new version and runhelm upgrade, as described in Upgrading DataHub. The component image tags default toglobal.datahub.version.
-
Read the breaking changes for the version you move to. The v1.1.4 release notes list breaking changes. For example, dataset semantic search is no longer turned on by default, and two MCP tools,
register_feedbackandnote_sql_anchor_observation, are replaced bynote_metadata_observation. If you move to a v2.x release, read its release notes too.On DataHub Cloud you can't change server settings yourself. Some of these breaking changes need a server setting. If your instance uses semantic search on datasets or the Slack integration, tell DataHub Support when you schedule the upgrade.
-
After the upgrade, check that the home page, entity pages and search load quickly. Check again during your busiest hours, not just right after the upgrade.
If pages are still slow after the upgrade, contact DataHub Support.
Filtering Okta groups
Ingesting fewer groups does not fix this issue. The upgrade fixes it.
If you still want to ingest fewer groups from Okta, note that the Okta source has no group_filter_pattern option. The source rejects unknown keys, so a recipe with group_filter_pattern fails validation. To limit groups, set either okta_groups_filter or okta_groups_search, not both. They take Okta filter or search expressions, not regular expressions. See the Okta source docs.