Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-9495

Allow user to set the frequency for task manager

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 6.0.32, 7.0.2
    • Proxy (P), Server (S)
    • None

      The task manager process of Zabbix server and proxy is handling tasks every 5 seconds, hard-coded value:

      $ grep '#define ZBX_TM_PROCESS_PERIOD' src/zabbix_*/taskmanager/*.c
      src/zabbix_proxy/taskmanager/taskmanager_proxy.c:#define ZBX_TM_PROCESS_PERIOD          5
      src/zabbix_server/taskmanager/taskmanager_server.c:#define ZBX_TM_PROCESS_PERIOD                5
      

      For the tests that involve tasks we must wait for at least 5 seconds before stopping the server to ensure the task was processed. The use of "sleep" is rather inconvenient, instead, we would like to set the frequency to 1 second. The configuration option could be something like:

      ### Option: TaskManagerFrequency                                                                                                                                                                                    
      #       How often the task manager process of Zabbix server will process tasks (in seconds).                                                                                                               
      #                                                                                                                                                                                                                   
      # Mandatory: no                                                                                                                                                                                                     
      # Range: 1-30                                                                                                                                                                                                       
      # Default:                                                                                                                                                                                                          
      # TaskManagerFrequency=5
      

            Unassigned Unassigned
            dimir dimir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: