Ad Widget

Collapse

Syncing History Data takes more than 36 hours

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jvella
    Junior Member
    • Sep 2008
    • 24

    #1

    Syncing History Data takes more than 36 hours

    We are running zabbix 1.8.2 to monitor 69 hosts and approx 4000 items. Performance is generally good, however, every now and again the number of items in the queue waiting to be processed gets to several thousand entries (ie the zabbix server virtually stops processing items). Looking in the Zabbix Server log file shows that the server is "Syncing History Data".

    The first couple of times it happened I rebooted the server and it seemed to come good for a while. This time, I let the syncing run its course and it took more than 36 hours of "Syncing History Data"!

    Obviously this is not how it should be. Our database is mysql and is only about 2GB in size.

    Anyone with any clues as to why this happens?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    what's your new values per second ?
    monitor your iowait on the system. what is it normally and during the slowdown ?
    monitor your sql queries per second. what is the average amount ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • jvella
      Junior Member
      • Sep 2008
      • 24

      #3
      The number of values per second is just under 30.

      The Mysql queries per second spikes at the time of the slow down (see attached graph) and it seems to be a fairly regular time (ie approx 6 am when it occurs)

      Can you tell me how to determine the iowait figures that you asked for?

      thank.
      Attached Files

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        in top output, you can see that as "wa" valuea.

        you can also run "vmstat 1 2" - "wa" column value in the second line is the one you need

        is the db on a virtual machine by any chance ?
        Zabbix 3.0 Network Monitoring book

        Comment

        • MrKen
          Senior Member
          • Oct 2008
          • 652

          #5
          C'mon richlv, what about Zabbix

          system.cpu.util[,iowait,avg1]

          Put that in the CPU Utilization stacked graph with user, system, and idle time.

          Disclaimer: All of the above is pure speculation.

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            hehe, good point
            i was mostly referring to quick debugging, but yeah - in general it is a good idea to monitor iowait to see hot it changes over time
            Zabbix 3.0 Network Monitoring book

            Comment

            • jvella
              Junior Member
              • Sep 2008
              • 24

              #7
              Richlv,

              No, the db is not in a virtual machine.
              I have added an item recording iowait on the Zabbix Server and I will let you know the results.

              Thanks.

              Comment

              • jvella
                Junior Member
                • Sep 2008
                • 24

                #8
                Can anyone tell me what is sctually happening when the zabbix server log says "syncing history data"?

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  child nodes are sending history and trends data to master node
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • jvella
                    Junior Member
                    • Sep 2008
                    • 24

                    #10
                    Why would it be doing this as I don't have a distributed Zabbix configuration and no zabbix proxies!

                    Comment

                    • jvella
                      Junior Member
                      • Sep 2008
                      • 24

                      #11
                      richlv,

                      Finally got to record the change in iowait.
                      Normal iowait is 1 - 2.
                      iowait during "history sync" is approx 30.

                      While this is happening, the zabbix dashboard indicates that zabbix is stopped (even though it is actually still running) and the item queue builds up.

                      Comment

                      • jvella
                        Junior Member
                        • Sep 2008
                        • 24

                        #12
                        These issues seem to occur at approx 6 am every day. Is there anything significant about this time? Does Zabbix schedule something for this time?
                        I have checked all of my cron jobs and there is nothing external that is scheduled for this time.

                        Comment

                        Working...