Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-6643

New MongoDB exporter has higher CPU usage compared with old

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.10.1
    • Component/s: MongoDB_Exporter
    • Labels:
      None
    • Environment:

      To create this with aws-staging just use the following parameters:

      --addclient=mo,1 --mongomagic --with-sharding

    • Story Points:
      1
    • Sprint:
      Platform Sprint 25
    • Needs Review:
      Yes
    • Needs QA:
      Yes

      Description

      The new MongoDB exporter clearly has a very high CPU usage as compared to the older version which we shipped with 2.9.1. 

      Attaching two images to compare, one from 2.9.1 while the other from dev-latest with new MongoDB exporter, both under the same very basic load. 

        Attachments

        1. MongoDB Exporter 2.9.1_usage.png
          MongoDB Exporter 2.9.1_usage.png
          219 kB
        2. new MongoDb exporter Usage.png
          new MongoDb exporter Usage.png
          220 kB
        3. out.prof
          22 kB
        4. plot3.png
          plot3.png
          29 kB
        5. pprof001.svg
          156 kB
        6. pprof.samples.cpu.001.pb.gz
          15 kB
        7. image-2020-09-20-13-16-06-143.png
          image-2020-09-20-13-16-06-143.png
          225 kB
        8. cpu-mem-usage_very_basic_crud.png
          cpu-mem-usage_very_basic_crud.png
          57 kB
        9. cpu-mem-usage_half_million_load_run.png
          cpu-mem-usage_half_million_load_run.png
          67 kB
        10. cpu-mem-usage_very_basic_crud.png
          cpu-mem-usage_very_basic_crud.png
          57 kB
        11. cpu-mem-usage_metrics_end_point_heavy_load.png
          cpu-mem-usage_metrics_end_point_heavy_load.png
          92 kB
        12. Screenshot from 2020-09-20 21-00-20.png
          Screenshot from 2020-09-20 21-00-20.png
          100 kB
        13. image-2020-09-21-15-28-56-661.png
          image-2020-09-21-15-28-56-661.png
          87 kB
        14. image (29).png
          image (29).png
          84 kB
        15. image (29).png
          image (29).png
          84 kB

          Activity

            People

            Assignee:
            carlos.salguero Carlos Salguero
            Reporter:
            puneet.kala Puneet Kala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 5 hours
                5h

                  Smart Checklist