Giter Site home page Giter Site logo

jmeter-cassandra's Introduction

Cassandra JMeter Plugin for Cassandra


A CQL3 native plugin for Cassandra 2.0 using the DataStax Java Driver for Apache Cassandra. The plugin is loosely based on the JDBC Plugin included with JMeter originally written by Ruben Laguna. It includes 4 components:

  • Cassandra Configuration
  • Cassandra Sampler
  • Cassandra PreProcessor
  • Cassandra PostProcessor

Installation

Simply unpack the archive in the JMeter install directory. All of the libraries will unpack into the lib/ext directory.

Configuration

Because it is based on the Java Driver, the plugin automatically connects to a given contact point and will discover the rest of the nodes in the cluster. To function correclty, it is necessary that JMeter be able to directly access all of the nodes in your cluster

Fields:

  • Variable Name (Required): Similar to JDBC. A name by which the Samplers/Processors will refer to this connection
  • Contact Points (Required): A comma-separated list of contact points in your cluster
  • Default Keyspace (Optional): The default keyspace used by CQL
  • Username: Username for use with the PasswordAuthenticator
  • Password: Password for use with the PasswordAuthenticator

alt text

Sampling

Simple add a Cassandra Sampler to your test plan. The sampler runs in 3 modes, Simple Statement, Prepared Statement, Batch Statement.

Set up the following fields:

  • Session Variable - the variable name created in the Cassandra Connection
  • Query Type - Simple Statement, Prepared Statement, Dynamic Batch. The Batch Statement is a dynamic batch, and is not related to the BEGIN BATCH statment.
  • CQL Query - A single CQL query. You may use DML, DDL, BEGIN BATCH, SELECT, etc. If the query types is Prepared or Dynamic Batch, you may use parameter markers in the query.
  • Parameter Values (Optional): The parameter values used in Prepared and Batch statements. See the JDBC Sampler for more information.
  • Variable Names (Optional): Variables created for output values. The names specified are postpended with the row number. For example, if you have a variable call LAST_NAME, and the result set outputs 3 rows, the sampler outputs 3 variables - LASTNAME_1, LASTNAME_2, LASTNAME_3.
  • Result Variable Name (Optional): A single variable that contains the entire result set. (See the JDBC Sampler).
  • Consistency Level - The consistency level to use for executing this statement
  • Batch Size (Optional): If the Query Type is a Batch Statement, the number of statements to get queued up in the batch before the batch is applied.

Build a distribution package:

mvn clean package assembly:single -DskipTests=true

jmeter-cassandra's People

Contributors

hscheib avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.