Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-878

Collection support in pillowfight

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.4
    • Component/s: None
    • Labels:
      None

      Description

      It would be very useful to enhance pillowfight with collection awareness to assist testing and benchmarking of the server.

      Note cbworkloadgen supports collections, at a minimum we should copy what cbworkloadgen does.

      cbworkloadgen was changed to accept two new CLI arguments.

      1. -s
      2. -c

      The -s option allows the client to specify a custom separating character which will be used in forming keys <prefix><separator><random>.

      The -c option allows the client to specify collection names, these really just describe the prefix. When the -c option is specified cbworkloadgen adds "collections" to its HELLO message. Note that cbworkloadgen allows many -c inputs, each one adding another prefix to the list allowed.

      Examples:

      > cbworkloadgen <usual options> -s : -c beer

      Will generate only beer:<random> keys

      > cbworkloadgen <usual options> -s : -c beer -c brewery

      Using many -c will alternate in generating beer:<random>, brewery:<random> keys

      Basically the key generation will round-robin through the list of collections so we evenly write/read to the list specified.

        Attachments

          Issue Links

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

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                avsej Sergey Avseyev
                Reporter:
                jwalker Jim Walker
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.