Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-1123

Allow tracing query details

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.0 beta 1
    • None
    • None

    Description

      In the spirit of CASSANDRA-511, it would be useful to tracing on queries to see where latency is coming from: how long did row cache lookup take? key search in the index? merging the data from the sstables? etc.

      The main difference vs setting debug logging is that debug logging is too big of a hammer; by turning on the flood of logging for everyone, you actually distort the information you're looking for. This would be something you could set per-query (or more likely per connection).

      We don't need to be as sophisticated as the techniques discussed in the following papers but they are interesting reading:

      http://research.google.com/pubs/pub36356.html
      http://www.usenix.org/events/osdi04/tech/full_papers/barham/barham_html/
      http://www.usenix.org/event/nsdi07/tech/fonseca.html

      Attachments

        1. 1123.patch
          232 kB
          David Alves
        2. 1123.patch
          228 kB
          David Alves
        3. 1123.patch
          245 kB
          David Alves
        4. 1123.patch
          117 kB
          David Alves
        5. 1123-3.patch.gz
          13 kB
          Aaron Morton
        6. 1123-v6.txt
          215 kB
          Jonathan Ellis
        7. 1123-v7.patch
          179 kB
          David Alves
        8. 1123-v8.patch
          195 kB
          David Alves
        9. 1123-v9.patch
          170 kB
          David Alves
        10. 1123-v9.txt
          170 kB
          Jonathan Ellis
        11. 1123-v9.txt
          155 kB
          Jonathan Ellis

        Issue Links

          Activity

            People

              dr-alves David Alves
              jbellis Jonathan Ellis
              David Alves
              Jonathan Ellis
              Votes:
              1 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: