Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-3231

A query in Everett is using too much cpu

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: PDB 4.2.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Systems Engineering
    • Story Points:
      1
    • Sprint:
      SE 2017-01-11
    • QA Risk Assessment:
      Needs Assessment

      Description

      See PERF-135 for details but the query introduced with https://github.com/puppetlabs/puppetdb/commit/71cd8857bab89b40b1204e39bde621622c4ff004/src/puppetlabs/puppetdb/scf/storage.clj#diff-0

      is taking up considerably more CPU than prior releases. Comparing the latest Davis Z release with the pre-release version of Everett I am testing, PostgreSQL in Everett is taking around 4-5 times more CPU. Upon Wyatt Alt's advice, I installed pg_stat_statements and found the query.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ryan.senior Ryan Senior
                Reporter:
                doug.rosser Doug Rosser
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support