Git Product home page Git Product logo

gatling-aerospike's Introduction

Gatling-Aerospike

An unofficial Gatling 2.5 stress test plugin for Aerospike.

Inspired by gatling-kafka.

This plugin supports the Aerospike put and get operations.

Usage

Creating a jar file

Install sbt 0.13 if you don't have. And create a jar file:

$ sbt assembly

If you want to change the version of Gatling used to create a jar file, change the following line in build.sbt:

"io.gatling" % "gatling-core" % "2.2.3" % "provided"

and run sbt assembly.

If you don't want to include aerospike-client library to the jar file, change a line on aerospike-client in build.sbt from

"com.aerospike" % "aerospike-client" % "3.3.4"

to

"com.aerospike" % "aerospike-client" % "3.3.4" % "provided")

and run sbt assembly.

Putting the jar file to lib directory

Put the jar file to lib directory in Gatling:

$ cp target/scala-2.11/gatling-aerospike-assembly-*.jar /path/to/gatling-charts-highcharts-bundle-2.2.*/lib

If you edited build.sbt in order not to include aerospike-client library to the jar file, you also need to copy aerospike-client library to lib directory:

$ cp /path/to/aerospike-client-*.jar /path/to/gatling-charts-highcharts-bundle-2.2.*/lib

Creating a simulation file

$ cd /path/to/gatling-charts-highcharts-bundle-2.2.*
$ vi user-files/simulations/AerospikeSimulation.scala

You can find sample simulation files in the test directory. Among these files, BasicSimulation.scala would be a good start point. Make sure that you replace BasicSimulation with AerospikeSimulation in BasicSimulation.scala if your simulation filename is AerospikeSimulation.scala.

Running a stress test

After starting an Aerospike server, run a stress test:

$ bin/gatling.sh

License

Apache License, Version 2.0

gatling-aerospike's People

Stargazers

Ernestas Vaiciukevičius avatar

Watchers

James Cloos 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.