[ZBXNEXT-4680] Add support for table level shared locks Created: 2018 Aug 08  Updated: 2018 Aug 13  Resolved: 2018 Aug 13

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: 4.0.0alpha9
Fix Version/s: 4.0.0beta1

Type: New Feature Request Priority: Trivial
Reporter: Andris Zeila Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-4684 Use shared table locks when processin... Closed

 Description   

ZBXNEXT-413 added maintenance processing to history syncers (creating event suppress records for problems that matches running maintenances). To avoid foreign key errors (when maintenance is removed by API while still being processed by server) history syncers lock running maintenanances for update in database. This introduces performance bottleneck - when a maintenance period is active history syncers has to process them sequentially.

To avoid this table based shared locks must be added. When processing maintenances history syncers (and timers) will request shared lock on maintenance table. It will allow parallel maintenance processing by syncers while preventing frontend from maintenance removal.


Generated at Thu Apr 25 06:47:42 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.