Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2692

Provide flag for disabling statistics collection

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.7.0
    • None
    • None

    Description

      It would be useful to be able to completely disable statistics collection in some situations. This is typically done for debugging performance issues that have come up as part of statistics collection.

      Disabling statistics collection is typically done by setting the phoenix.stats.guidepost.width config setting to a very large number, but this has the problem that it is not 100% reliable (some guidepost data is still written to the SYSTEM.STATS table if this is done), and it's just kind of a work-around that currently (mostly) works, but this method of disabling stats collection isn't guaranteed to work in the future (for example, if new types of statistics are also collected, or if they're based on something other than file size).

      Our specific use case for disabling statistics collection is based on the way that we're typically using Phoenix, which is more as a library which facilitates querying a combination of data that is managed by Phoenix along with data that is not managed by Phoenix. In this case, because the statistics collection only looks at the data managed by Phoenix, it doesn't function as needed (as well as having the additional issue of leading to problems like LP-2680).

      Ideally we'll move towards using statistics as we iron out these issues, but having the ability to disable statistics (at least for now) would also be very useful.

      Attachments

        1. PHOENIX-2692.patch
          39 kB
          Gabriel Reid

        Activity

          People

            gabriel.reid Gabriel Reid
            gabriel.reid Gabriel Reid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: