ZABBIX FEATURE REQUESTS
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-3210

Replace user macro cache with caching expanded trigger expressions

    Details

    • Type: Change Request Change Request
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2, 3.2.0alpha1
    • Component/s: Server (S)
    • Labels:
      None

      Description

      To reduce configuration cache locking a user macro cache (zbx_umc_*) was added to Zabbix 3.0. However this cache turned out overly complex, as it had to support batch operations for mutiple triggers.

      Another workaround was found (and tested) for 2.2 - cache trigger expression with expanded user macros and reuse it for trigger calculations until next configuration cache sync. This achieves the targeted improvement (reduced configuration cache locking when processing trigger expressions) with much less code complexity.

      It was decided to remove user macro cache and implement trigger expression caching.

      In future similar improvements could be made to item processing for some fields. For example vmware items almost always will have user macros in 3 item fields, resulting in additional 3 configuration cache locks during each item processing.

        Activity

        Hide
        Andris Zeila added a comment -

        Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-3210

        Show
        Andris Zeila added a comment - Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-3210
        Hide
        Alexander Vladishev added a comment - - edited

        (1) take a look at my changes in r59105:59127

        Andris Zeila CLOSED

        Show
        Alexander Vladishev added a comment - - edited (1) take a look at my changes in r59105:59127 Andris Zeila CLOSED
        Hide
        Andris Zeila added a comment -

        Released in:

        • pre-3.0.2rc1 r59141
        • pre-3.1.0 r59142
        Show
        Andris Zeila added a comment - Released in: pre-3.0.2rc1 r59141 pre-3.1.0 r59142
        Hide
        Glebs Ivanovskis added a comment -

        Caused ZBX-10692.

        Show
        Glebs Ivanovskis added a comment - Caused ZBX-10692 .

          People

          • Assignee:
            Unassigned
            Reporter:
            Andris Zeila
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: