Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-19447

[FTS] Need to add forestdb latency stats to fts.log

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • feature-backlog
    • 4.5.0
    • fts
    • None
    • Untriaged
    • Unknown

    Description

      It would be great if we can have the forestdb latency stats printed out into the fts.log periodically along with other stats. This will help us quickly measure the performance impact of any future changes on the bleve/cbft usecase.
      There are 3 forestdb public functions that can be used for this.
      Please checkout this loop..

      for (int i = 0; i < FDB_LATENCY_NUM_STATS; ++i) {
              fdb_latency_stat stat;
              memset(&stat, 0, sizeof(fdb_latency_stat));
              s = fdb_get_latency_stats(db.fhandle, &stat, i);
              TEST_CHK(s == FDB_RESULT_SUCCESS);
              fprintf(stderr, "%s:\t%u\t%u\t%u\t%" _F64 "\n",
                      fdb_latency_stat_name(i),
                      stat.lat_min, stat.lat_avg, stat.lat_max, stat.lat_count);
          }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            steve Steve Yen
            sundar Sundar Sridharan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty