Bug 56113 - Portal connects to Primary Node to fetch portal tiles
Portal connects to Primary Node to fetch portal tiles
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Portal
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3-errata
Assigned To: Dirk Wiesenthal
Julia Bremer
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-02 12:48 CEST by Dirk Wiesenthal
Modified: 2023-06-07 09:57 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.286
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023052621000404
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2023-06-02 12:48:19 CEST
It uses UDM.machine() - which connects to the Primary Node. This may cause heavy load on the Primary if many nodes are involved. As every change in portal data will trigger `univention-portal update`.

Instead we should spread the load by getting a local connection. UDM.machine() does not have the ability to do so. So we would need to improve this, too.
Comment 1 Dirk Wiesenthal univentionstaff 2023-06-05 21:14:07 CEST
Fixed in
  univention-directory-manager-modules 15.0.20-9
  univention-portal 4.0.9-7

UDM.machine(prefer_local_connection=True) has been added and is used in the portal.
Comment 2 Julia Bremer univentionstaff 2023-06-06 16:36:58 CEST
OK: Upgrade
OK: Portal connects to local server (in case of memberservers the master is still used as default, but this is configurable, so I guess its ok
OK: Dependency to correct udm version
OK: Jenkins tests

Verified