[ZBX-14648] slow deletion of item in template linked to many hosts Created: 2018 Jul 26 Updated: 2024 Apr 10 Resolved: 2018 Nov 30 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 3.4.10 |
Fix Version/s: | 4.0.3rc1, 4.2.0alpha2, 4.2 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | Oleksii Zagorskyi | Assignee: | Alexander Vladishev |
Resolution: | Fixed | Votes: | 1 |
Labels: | massdelete, massupdate, performance | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | Selection_032.png | ||||||||||||
Issue Links: |
|
||||||||||||
Team: | Team B | ||||||||||||
Sprint: | Sprint 39, Sprint 40, Sprint 41, Sprint 42, Sprint 43, Sprint 44, Sprint 45, Sprint 46, Nov 2018 | ||||||||||||
Story Points: | 3 |
Description |
Information below is gathered from discussion with a zabbix user. When we delete an item from template, linked to 10K hosts, it takes too much time, and in 99% of attempts it returms nothing (supposedly PHP error happens). There were changes in
which does not include items deletion. Besides of the zbx, there are also And one more thing: Zabbix 3.4.9. © 2001–2018, Zabbix SIA ******************** Профилировщик сценария ******************** Всего затрачено времени: 1593.176998 Всего затрачено времени на SQL: 0.072697 SQL запросов: 46 (selects: 44 | executes: 2) Пиковое использование памяти: 14.25M Лимит памяти: 512M Note - I'm not sure what the provided debug belongs too - opening a page or deletion items. |
Comments |
Comment by richlv [ 2018 Jul 26 ] | |||||||||
Slow permission checks have been reported many times in the past, a few issues that are still open: | |||||||||
Comment by Alexander Vladishev [ 2018 Aug 17 ] | |||||||||
Available for testing in development branch svn://svn.zabbix.com/branches/dev/ZBX-14648-trunk item.delete(), itemprototype.delete(), trigger.delete(), triggerprototype.delete(), graph.delete(), graphprototype.delete() - improved overall performance and memory consumption, added/improved audit logging, added strict validation for input parameters. I could not reproduce the second problem - Configuration -> Hosts opened fast with admins and super-admins. zalex_ua, please create separate issue if this problem still relevant. Tests (delete an item from template, linked to another template which linked to 10K hosts):
| |||||||||
Comment by Alexander Vladishev [ 2018 Nov 30 ] | |||||||||
Fixed in:
|