Bug 52271 - Make dispatch timeout for UMC-Web-Server configurable
Make dispatch timeout for UMC-Web-Server configurable
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-6-errata
Assigned To: Florian Best
Dirk Wiesenthal
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-10-27 15:22 CET by Florian Best
Modified: 2020-11-04 14:49 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
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):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2020-10-27 15:22:36 CET
Python notifier has so called "dispatchers" aka functions which are called in the main loop every MIN_TIMER seconds, which is especially for services with multiple main loops.

Setting the MIN_TIMER from default 100 to 30 increases the performance of UMC under heavy load / many parallel (login) requests:
Including the fix from Bug #52253 the number of logins per second increased from ~5.1 to ~7.5:

Master 6 vCPUs, Slave 8 vCPUs,
    Mean time per portal login 0.141109539986
    Number of logins per second: 7.08669307618
Comment 1 Florian Best univentionstaff 2020-10-27 15:54:33 CET
The dispatching interval may now be configured via the UCR-Variables:
UMC-Web-Server: umc/http/dispatch-interval
UMC-Server: umc/server/dispatch-interval

The UMC-Server doesn't registers dispatchers but the interval is also used as the default timeout in the main loop during IDLE time.

univention-management-console.yaml
72020907da80 | YAML Bug #52271

univention-management-console (11.0.5-6)
ade91d371b75 | Bug #52271: make dispatcher interval configurable
Comment 2 Dirk Wiesenthal univentionstaff 2020-11-02 10:53:15 CET
Code: OK
UCR description and default: OK
YAML: OK