All Downloads are FREE. Search and download functionalities are using the official Maven repository.

activities.baselines.cql-keyvalue.yaml Maven / Gradle / Ivy

There is a newer version: 3.12.99
Show newest version
# nb -v run driver=cql yaml=cql-keyvalue tags=phase:schema host=dsehost
scenarios:
  default:
    - run driver=cql tags==phase:schema threads==1 cycles==UNDEF
    - run driver=cql tags==phase:rampup cycles===TEMPLATE(rampup-cycles,10000000) threads=auto
    - run driver=cql tags==phase:main cycles===TEMPLATE(main-cycles,10000000) threads=auto
bindings:
  seq_key: Mod(<>); ToString() -> String
  seq_value: Hash(); Mod(<>); ToString() -> String
  rw_key: <int>>; ToString() -> String
  rw_value: Hash(); <int>>; ToString() -> String

blocks:
  - name: schema
    tags:
      phase: schema
    params:
      prepared: false
    statements:
    - create-keyspace: |
        create keyspace if not exists <>
        WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '<>'}
        AND durable_writes = true;
      tags:
         name: create-keyspace
    - create-table: |
        create table if not exists <>.<> (
        key text,
         value text,
         PRIMARY KEY (key)
        );
      tags:
        name: create-table
  - name: rampup
    tags:
      phase: rampup
    params:
      cl: <>
    statements:
      - rampup-insert: |
          insert into <>.<>
          (key, value)
          values ({seq_key},{seq_value});
        tags:
           name: rampup-insert
  - name: verify
    tags:
      phase: verify
      type: read
    params:
      cl: <>
    statements:
      - verify-select: |
          select * from <>.<> where key={seq_key};
        verify-fields: key->seq_key, value->seq_value
        tags:
           name: verify
  - name: main-read
    tags:
      phase: main
      type: read
    params:
      ratio: 5
      cl: <>
    statements:
      - main-select: |
         select * from <>.<> where key={rw_key};
        tags:
          name: main-select
  - name: main-write
    tags:
      phase: main
      type: write
    params:
      ratio: 5
      cl: <>
    statements:
      - main-insert: |
          insert into <>.<>
          (key, value) values ({rw_key}, {rw_value});
        tags:
           name: main-insert




© 2015 - 2025 Weber Informatics LLC | Privacy Policy