Bug 47339 - Downsize transaction file automatically
Downsize transaction file automatically
Status: NEW
Product: UCS
Classification: Unclassified
Component: Notifier (univention-directory-notifier)
UCS 4.4
Other other
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-11 13:00 CEST by Michael Grandjean
Modified: 2021-05-14 16:50 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Feature Request
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?: Yes
School Customer affected?: Yes
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 Michael Grandjean univentionstaff 2018-07-11 13:00:25 CEST
/var/lib/univention-ldap/notify can become quite large in larger environments, especially UCS@school multi server scenarios which slows down the join process of new UCS systems. Therefore, we should downsize the transaction file automatically (check the replication status in the domain, cut to the last successfully replicated transaction plus buffer).

This would make https://help.univention.com/t/downsizing-transaction-file/6434 obsolete.
Comment 1 Philipp Hahn univentionstaff 2019-04-01 11:18:58 CEST
All UCS systems running UDL could write their /var/lib/univention-directory-listener/notifier_id to their LDAP machine account on a regular basis (daily/weekly). Then all transactions before min(...) can be dropped.
A Nagios or UMC-diagnostics module can check for systems far behind and notify the admin about this systems: "The system XXX was inactive for time YYY now. It last reported listener transaction ID ZZZ, which is far behind the current AAA. This prevents truncating the transaction file. You should delete the machine account if the system is longer active."

This might be problematic if snapshots are used and only a single system is reset. If the transaction file is shortened too much, all older systems must be re-joined.

Truncating the file is not enough as since UCS-4.3 erratum 427 the transactions are not only written to /var/lib/univention-ldap/notify/transaction, but also to cn=translog.
Comment 2 Ingo Steuwer univentionstaff 2021-05-14 16:50:54 CEST
should be still relevant for UCS 4.4