Bug 37046 - setup/apps/query takes 8 minutes
setup/apps/query takes 8 minutes
Status: RESOLVED DUPLICATE of bug 40102
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-x
Assigned To: App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-26 13:13 CET by Florian Best
Modified: 2017-01-17 17:01 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Large environments, UCS Performance
Max CVSS v3 score:
best: Patch_Available+


Attachments
patch (811 bytes, patch)
2014-11-27 14:08 CET, Florian Best
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2014-11-26 13:13:09 CET
Since the global appcenter the following command takes 8 minutes in a environment with 200 memberservers:

time umc-command -U Administrator -P univention setup/apps/query -f wizard
user    0m0.328s
sys     0m0.072s
real    8m35.766s

Doing this request blocks (only tested in chromium) the HTTP connection so that no further request is answered until the request was answered. So nothing is possible in UMC anymore then.
I am not sure how critical this is because this command is only executed in the setup wizard. But I could imagine that this command is not the only one. Maybe some more in the appcenter?

The logfile is full of these entries for every computer object which exists:
25.11.14 15:46:58.670  ADMIN       ( INFO    ) : Set primary group = cn=Computers,cn=groups,dc=test,dc=intranet
25.11.14 15:46:58.671  ADMIN       ( INFO    ) : zoneNames: [('test.intranet', ['1.250.3.19'])]
25.11.14 15:46:58.672  ADMIN       ( INFO    ) : results: ['zoneName=test.intranet,cn=dns,dc=test,dc=intranet']
25.11.14 15:46:58.672  ADMIN       ( INFO    ) : dnsEntryZoneForward: [['zoneName=test.intranet,cn=dns,dc=test,dc=intranet', '1.250.3.19']]
25.11.14 15:46:58.672  ADMIN       ( INFO    ) : simpleComputer: dnsEntryZoneReverse: [['zoneName=250.1.in-addr.arpa,cn=dns,dc=test,dc=intranet', '1.250.3.19']]
25.11.14 15:46:58.672  ADMIN       ( INFO    ) : simpleComputer: dnsEntryZoneAlias: []
25.11.14 15:46:58.673  ADMIN       ( INFO    ) : primary group number = 5007
Comment 1 Florian Best univentionstaff 2014-11-27 14:08:41 CET
Created attachment 6479 [details]
patch

Attached a patch. give app.to_dict() only the local hostname (instead of querying every host). Would it be also okay to pass an empty list (worked at least in my test).
@Dirk: what do you think about the patch?
Comment 2 Florian Best univentionstaff 2017-01-17 17:01:40 CET
The code was changed via Bug #40102 and is probably resolved!?

*** This bug has been marked as a duplicate of bug 40102 ***